Part Number Hot Search : 
AO340 O55CC RE46C140 10E471 64LIMS 05N5817 7C34098A SD431
Product Description
Full Text Search
 

To Download MFRC52201HN1TRAYB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. introduction this document describes the functionality and electrical specificati ons of the contactless reader/writer mfrc522. 2. general description the mfrc522 is a highly integrated read er/writer ic for contactless communication at 13.56 mhz. the mfrc522 reader supports iso/iec 14443 a/mifare mode. the mfrc522?s internal transmitter is able to drive a reader/writer antenna designed to communicate with iso/iec 14443 a/mifare card s and transponders without additional active circuitry. the receiver module provid es a robust and efficient implementation for demodulating and decoding signals from iso/iec 14443 a/mifare compatible cards and transponders. the digital module manages the complete iso/iec 14443 a framing and error detection (parity and crc) functionality. the mfrc522 supports mf1xxs20, mf1xxs70 and mf1xxs50 products. the mfrc522 supports contactless communication and uses mifare higher transfer speeds up to 848 kbd in both directions. the following host interfaces are provided: ? serial peripheral interface (spi) ? serial uart (similar to rs232 with voltage levels dependant on pin voltage supply) ? i 2 c-bus interface 3. features and benefits ? highly integrated analog circuitry to demodulate and decode responses ? buffered output drivers for connecting an antenna with the minimum number of external components ? supports iso/iec 14443 a/mifare ? typical operating distance in read/write mode up to 50 mm depending on the antenna size and tuning ? supports mf1xxs20, mf1xxs70 and mf1xxs50 encryption in read/write mode ? supports iso/iec 14443 a higher transfer speed communication up to 848 kbd ? supports mfin/mfout ? additional internal power supply to the smart card ic connected via mfin/mfout ? supported host interfaces mfrc522 contactless reader ic rev. 3.4 ? 5 march 2010 112134 product data sheet public
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 2 of 96 nxp semiconductors mfrc522 contactless reader ic ? spi up to 10 mbit/s ? i 2 c-bus interface up to 400 kbd in fast mode, up to 3400 kbd in high-speed mode ? rs232 serial uart up to 1228.8 kbd, with voltage levels dependant on pin voltage supply ? fifo buffer handles 64 byte send and receive ? flexible inte rrupt modes ? hard reset with low power function ? power-down by software mode ? programmable timer ? internal oscillator for connecti on to 27.12 mhz quartz crystal ? 2.5 v to 3.3 v power supply ? crc coprocessor ? programmable i/o pins ? internal self-test 4. quick reference data [1] supply voltages below 3 v reduce the performance in , for example, the achi evable operating distance. [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . [4] i pd is the total current for all supplies. [5] i dd(pvdd) depends on the overall load at the digital pins. [6] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [7] during typical circuit operation, the overall current is below 100 ma. [8] typical value using a complementary driv er configuration and an antenna matched to 40 between pins tx1 and tx2 at 13.56 mhz. table 1. quick reference data symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5 3.3 3.6 v v ddd digital supply voltage 2.5 3.3 3.6 v v dd(tvdd) tvdd supply voltage 2.5 3.3 3.6 v v dd(pvdd) pvdd supply voltage [3] 1.6 1.8 3.6 v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) = 0 v 1.6 - 3.6 v i pd power-down current v dda =v ddd = v dd(tvdd) =v dd(pvdd) =3v hard power-down; pin nrstpd set low [4] --5 a soft power-down; rf level detector on [4] --10 a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda = 3 v, commandreg register?s rcvoff bit = 0 -710ma pin avdd; receiver switched off; v dda =3v, commandreg register?s rcvoff bit = 1 -35ma i dd(pvdd) pvdd supply current pin pvdd [5] --40ma i dd(tvdd) tvdd supply current pin tvdd; continuous wave [6] [7] [8] -60100ma t amb ambient temperature hvqfn32 ? 25 - +85 c
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 3 of 96 nxp semiconductors mfrc522 contactless reader ic 5. ordering information [1] delivered in one tray. [2] delivered in five trays. 6. block diagram the analog interface handles the modulation and demodulation of the analog signals. the contactless uart manages the protocol requirements for the communication protocols in cooperation with the host. the fi fo buffer ensures fast and convenient data transfer to and from the host and the contactless uart and vice versa. various host interfaces are implemented to meet different customer requirements. table 2. ordering information type number package name description version mfrc52201hn1/trayb [1] hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 5 0.85 mm sot617-1 mfrc52201hn1/traybm [2] hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 5 0.85 mm sot617-1 fig 1. simplified block diagram of the mfrc522 001aaj62 7 host antenna fifo buffer analog interface contactless uart serial uart spi i 2 c-bus register bank
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 4 of 96 nxp semiconductors mfrc522 contactless reader ic fig 2. detailed block diagram of the mfrc522 001aak60 2 dvdd nrstpd irq mfin mfout svdd oscin oscout vmid aux1 aux2 rx tvss tx1 tx2 tvdd 16 19 20 17 10, 14 11 13 12 dvss avdd pvss pvdd sda/nss/rx ea i2c 5 2 24 32 1 d1/adr_5 25 d2/adr_4 26 d3/adr_3 27 d4/adr_2 28 d5/adr_1/ sck/dtrq 29 d6/adr_0/ mosi/mx 30 d7/scl/ miso/tx 31 avss 3 6 23 7 8 9 21 22 4 15 18 fifo control mifare classic unit state machine command register programable timer interrupt control crc16 generation and check parallel/serial converter serial data switch transmitter control bit counter parity generation and check frame generation and check bit decoding bit encoding random number generator analog to digital converter i-channel amplifier analog test multiplexor and digital to analog converter i-channel demodulator q-channel amplifier clock generation, filtering and distribution q-clock generation oscillator temperature sensor q-channel demodulator amplitude rating reference voltage 64-byte fifo buffer control register bank spi, uart, i 2 c-bus interface control voltage monitor and power on detect reset control power-down control
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 5 of 96 nxp semiconductors mfrc522 contactless reader ic 7. pinning information 7.1 pin description fig 3. pinning configuration hvqfn32 (sot617-1) 001aaj819 mfrc522 transparent top view rx mfin mfout avss nrstpd aux1 pvss aux2 dvss oscin dvdd oscout pvdd irq i2c sda/nss/rx svdd tvss tx1 tvdd tx2 tvss avdd vmid ea d7/scl/miso/tx d6/adr_0/mosi/mx d5/adr_1/sck/dtrq d4/adr_2 d3/adr_3 d2/adr_4 d1/adr_5 8 17 7 18 6 19 5 20 4 21 3 22 2 23 1 24 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 table 3. pin description pin symbol type [1] description 1i2c ii 2 c-bus enable input [2] 2 pvdd p pin power supply 3 dvdd p digital power supply 4 dvss g digital ground [3] 5 pvss g pin power supply ground 6 nrstpd i reset and power-down input: power-down: enabled when low; internal curr ent sinks are switched off, the oscillator is inhibited and the input pins are disconnected from the outside world reset: enabled by a positive edge 7 mfin i mifare signal input 8 mfout o mifare signal output 9 svdd p mfin and mfout pin power supply 10 tvss g transmitter output stage 1 ground 11 tx1 o transmitter 1 modulated 13.56 mhz energy carrier output 12 tvdd p transmitter power supply: supplies the output stage of transmitters 1 and 2 13 tx2 o transmitter 2 modulated 13.56 mhz energy carrier output 14 tvss g transmitter output stage 2 ground 15 avdd p analog power supply
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 6 of 96 nxp semiconductors mfrc522 contactless reader ic [1] pin types: i = input, o = output, i/o = input/output, p = power and g = ground. [2] the pin functionality of t hese pins is explained in section 8.1 ? digital interfaces ? . [3] connection of heatsink pad on package bottom side is not necessary. optional connection to pin dvss is possible. 16 vmid p internal reference voltage 17 rx i rf signal input 18 avss g analog ground 19 aux1 o auxiliary outputs for test purposes 20 aux2 o auxiliary outputs for test purposes 21 oscin i crystal oscillator inverting amplifier inpu t; also the input for an externally generated clock (f clk = 27.12 mhz) 22 oscout o crystal oscillator inverting amplifier output 23 irq o interrupt request output: indicates an interrupt event 24 sda i/o i 2 c-bus serial data line input/output [2] nss i spi signal input [2] rx i uart address input [2] 25 d1 i/o test port [2] adr_5 i/o i 2 c-bus address 5 input [2] 26 d2 i/o test port adr_4 i i 2 c-bus address 4 input [2] 27 d3 i/o test port adr_3 i i 2 c-bus address 3 input [2] 28 d4 i/o test port adr_2 i i 2 c-bus address 2 input [2] 29 d5 i/o test port adr_1 i i 2 c-bus address 1 input [2] sck i spi serial clock input [2] dtrq o uart request to send output to microcontroller [2] 30 d6 i/o test port adr_0 i i 2 c-bus address 0 input [2] mosi i/o spi master out, slave in [2] mx o uart output to microcontroller [2] 31 d7 i/o test port scl i/o i 2 c-bus clock input/output [2] miso i/o spi master in, slave out [2] tx o uart data output to microcontroller [2] 32 ea i external address input for coding i 2 c-bus address [2] table 3. pin description ?continued pin symbol type [1] description
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 7 of 96 nxp semiconductors mfrc522 contactless reader ic 8. functional description the mfrc522 transmission module supports the read/write mode for iso/iec 14443 a/mifare using various tran sfer speeds and modulation protocols. the physical level communication is shown in figure 5 . the physical parameters are described in ta b l e 4 . the mfrc522?s contactless uart and d edicated external host must manage the complete iso/iec 14443 a/mifare protocol. figure 6 shows the data coding and framing according to iso/iec 14443 a/mifare. fig 4. mfrc522 read/write mode (1) reader to card 100 % ask, miller encoded, transfer speed 106 kbd to 848 kbd. (2) card to reader subcarrier load modulation, m anchester encoded or bpsk, transfer speed 106 kbd to 848 kbd. fig 5. iso/iec 14443 a/mifare read/w rite mode communication diagram 001aak58 3 battery reader/writer contactless card microcontroller mfrc522 iso/iec 14443 a card (1) (2) 001aak58 4 mfrc522 iso/iec 14443 a card iso/iec 14443 a reader table 4. communication overview for is o/iec 14443 a/mifare reader/writer communication direction signal type transfer speed 106 kbd 212 kbd 424 kbd 848 kbd reader to card (send data from the mfrc522 to a card) reader side modulation 100 % ask 100 % ask 100 % ask 100 % ask bit encoding modified miller encoding modified miller encoding modified miller encoding modified miller encoding bit length 128 (13.56 s) 64 (13.56 s) 32 (13.56 s) 16 (13.56 s) card to reader (mfrc522 receives data from a card) card side modulation subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier frequency 13.56 mhz / 16 13.56 mhz / 16 13.56 mhz / 16 13.56 mhz / 16 bit encoding manchester encoding bpsk bpsk bpsk
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 8 of 96 nxp semiconductors mfrc522 contactless reader ic the internal crc coprocessor calculates the crc value based on iso/iec 14443 a part 3 and handles parity generation internally according to the transfer speed. automatic parity generation can be switched off using the mfrxreg register?s paritydisable bit. 8.1 digital interfaces 8.1.1 automatic microcontroller interface detection the mfrc522 supports direct interfacing of hosts using spi, i 2 c-bus or serial uart interfaces. the mfrc522 resets its interface and checks the current host interface type automatically after performing a power-on or hard reset. the mfrc522 identifies the host interface by sensing the logic levels on the cont rol pins after the reset phase. this is done using a combination of fixed pin connections. table 5 shows the different connection configurations. fig 6. data coding and framing according to iso/iec 14443 a 001aak58 5 iso/iec 14443 a framing at 106 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start odd parity start bit is 1 iso/iec 14443 a framing at 212 kbd, 424 kbd and 848 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start even parity start bit is 0 burst of 32 subcarrier clocks even parity at the end of the frame table 5. connection protocol for detecting different interface types pin interface type uart (input) spi (output) i 2 c-bus (i/o) sda rx nss sda i2c001 ea01ea d7 tx miso scl d6 mx mosi adr_0 d5 dtrq sck adr_1 d4 - - adr_2 d3 - - adr_3 d2 - - adr_4 d1 - - adr_5
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 9 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.2 serial peripheral interface a serial peripheral interface (spi compatible) is supported to enable high-speed communication to the host. the interface can handle data speeds up to 10 mbit/s. when communicating with a host, the mfrc522 acts as a slave, receiving data from the external host for register settings, sending and receiving data relevant for rf interface communication. an interface compatible with spi enables high-speed serial communication between the mfrc522 and a microcontroller. the implement ed interface is in accordance with the spi standard. the timing specification is given in section 14.1 on page 75 . the mfrc522 acts as a slave during spi comm unication. the spi clock signal sck must be generated by the master. data communication from the master to the slave uses the mosi line. the miso line is used to s end data from the mfrc522 to the master. data bytes on both mosi and miso lines ar e sent with the msb first. data on both mosi and miso lines must be stable on the rising edge of the clock and can be changed on the falling edge. data is provided by the mfrc522 on the falling clock edge and is stable during the rising clock edge. 8.1.2.1 spi read data reading data using spi requires the byte order shown in ta b l e 6 to be used. it is possible to read out up to n-data bytes. the first byte sent defines both the mode and the address. [1] x = do not care. remark: the msb must be sent first. fig 7. spi connection to host 001aak58 6 mfrc522 sck sck mosi mosi miso miso nss nss table 6. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 address 1 address 2 ... address n 00 miso x [1] data 0 data 1 ... data n ? 1data n
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 10 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.2.2 spi write data to write data to the mfrc522 using spi requires the byte order shown in ta b l e 7 . it is possible to write up to n data bytes by only sending one address byte. the first send byte defines both the mode and the address byte. [1] x = do not care. remark: the msb must be sent first. 8.1.2.3 spi address byte the address byte must meet the following format. the msb of the first byte defines the mode used. to read data from the mfrc522 the msb is set to logic 1. to write data to the mfrc522 the msb must be set to logic 0. bits 6 to 1 define the address and the lsb is set to logic 0. 8.1.3 uart interface 8.1.3.1 connection to a host remark: signals dtrq and mx can be disabled by clearing testpinenreg register?s rs232lineen bit. table 7. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 data 0 data 1 ... data n ? 1data n miso x [1] x [1] x [1] ... x [1] x [1] table 8. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write address 0 fig 8. uart connection to microcontrollers 001aak58 7 mfrc522 rx rx tx tx dtrq dtrq mx mx
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 11 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.3.2 selectable uart transfer speeds the internal uart interface is compat ible with an rs232 serial interface. the default transfer speed is 9.6 kbd. to change the transfer speed, the host controller must write a value for the new transfer sp eed to the serialspeedreg register. bits br_t0[2:0] and br_t1[4:0] define the factors for setting the transfer speed in the serialspeedreg register. the br_t0[2:0] and br_t1[4:0] settings are described in ta b l e 9 . examples of different transfer speeds and the relevant register settings are given in ta b l e 1 0 . [1] the resulting transfer speed error is less than 1.5 % for all described transfer speeds. the selectable transfer speeds shown in table 10 are calculated according to the following equations: if br_t0[2:0] = 0: (1) if br_t0[2:0] > 0: (2) remark: transfer speeds above 1228.8 kbd are not supported. table 9. br_t0 and br_t1 settings br_tn bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 br_t0 factor11248163264 br_t1 range 1 to 32 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 table 10. selectable uart transfer speeds transfer speed (kbd) serialspeedreg value transfer speed accuracy (%) [1] decimal hexadecimal 7.2 250 fah ? 0.25 9.6 235 ebh 0.32 14.4 218 dah ? 0.25 19.2 203 cbh 0.32 38.4 171 abh 0.32 57.6 154 9ah ? 0.25 115.2 122 7ah ? 0.25 128 116 74h ? 0.06 230.4 90 5ah ? 0.25 460.8 58 3ah ? 0.25 921.6 28 1ch 1.45 1228.8 21 15h 0.32 transfer speed 27.12 10 6 br _ t0 1 + () ------------------------------- - = transfer speed 27.12 10 6 br _ t1 33 + () 2 br _ t0 1 ? () ---------------------------------- - ----------------------------------- ?? ?? ?? ?? ?? =
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 12 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.3.3 uart framing remark: the lsb for data and address bytes must be sent first. no parity bit is used during transmission. read data: to read data using the uart interface, the flow shown in ta b l e 1 2 must be used. the first byte sent defines both the mode and the address. write data: to write data to the mfrc522 using the uart interface, the structure shown in ta b l e 1 3 must be used. the first byte sent defines both the mode and the address. table 11. uart framing bit length value start 1-bit 0 data 8 bits data stop 1-bit 1 table 12. read data byte order pin byte 0 byte 1 rx (pin 24) address - tx (pin 31) - data 0 (1) reserved. fig 9. uart read data timing diagram 001aak58 8 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so data r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 13 of 96 nxp semiconductors mfrc522 contactless reader ic table 13. write data byte order pin byte 0 byte 1 rx (pin 24) address 0 data 0 tx (pin 31) - address 0
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 14 of 96 nxp semiconductors mfrc522 contactless reader ic remark: the data byte can be sent directly after the address byte on pin rx. address byte: the address byte has to meet the following format: the msb of the first byte sets the mode used. to read data from the mfrc522, the msb is set to logic 1. to write data to the mfrc522 the msb is set to logic 0. bit 6 is reserved for future use, and bits 5 to 0 define the address; see ta b l e 1 4 . (1) reserved. fig 10. uart write data timing diagram 001aak58 9 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so sa a0 a1 a2 a3 a4 a5 (1) so data address r/w r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 15 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4 i 2 c-bus interface an i 2 c-bus (inter-ic) interface is supported to enable a low-cost, low pin count serial bus interface to the host. the i 2 c-bus interface is implemented according to nxp semiconductors? i 2 c-bus interface specification, rev. 2.1, january 2000 . the interface can only act in slave mode. ther efore the mfrc522 does not implement clock generation or access arbitration. the mfrc522 can act either as a slave receiver or slave transmitter in standard mode, fast mode and high-speed mode. sda is a bidirectional line connected to a posit ive supply voltage using a current source or a pull-up resistor. both sda and scl lines are set high when data is not transmitted. the mfrc522 has a 3-state output stage to pe rform the wired-and function. data on the i 2 c-bus can be transferred at data rates of up to 100 kbd in standard mode, up to 400 kbd in fast mode or up to 3.4 mbit/s in high-speed mode. if the i 2 c-bus interface is selected , spike suppression is activated on lines scl and sda as defined in the i 2 c-bus interface specification. see table 155 on page 76 for timing requirements. table 14. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write reserved address fig 11. i 2 c-bus interface 001aak59 0 mfrc522 sda scl i2c ea adr_[5:0] pull-up network configuration wiring pull-up network microcontroller
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 16 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.1 data validity data on the sda line must be stable during the high clock period. the high or low state of the data line must only change when the clock signal on scl is low. 8.1.4.2 start and stop conditions to manage the data transfer on the i 2 c-bus, unique start (s) and stop (p) conditions are defined. ? a start condition is defined with a high-to-low transition on the sda line while scl is high. ? a stop condition is defined with a low-to-high transition on the sda line while scl is high. the i 2 c-bus master always generates the start and stop conditions. the bus is busy after the start condition. the bus is free aga in a certain time after the stop condition. the bus stays busy if a repeated start (sr) is generated instead of a stop condition. the start (s) and repeated start (sr) conditions are functionally identical. therefore, s is used as a generic term to represent both the start (s) and repeated start (sr) conditions. 8.1.4.3 byte format each byte must be followed by an acknowledge bit. data is transferred with the msb first; see figure 16 . the number of transmitted bytes during one data transfer is unrestricted but must meet the read /write cycle format. fig 12. bit transfer on the i 2 c-bus mbc62 1 data line stable; data valid change of data allowed sda scl fig 13. start and stop conditions mbc62 2 sda scl p stop condition sda scl s start condition
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 17 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.4 acknowledge an acknowledge must be sent at the end of one data byte. the acknowledge-related clock pulse is generated by the master. the transmitte r of data, either master or slave, releases the sda line (high) during the acknowledge clock pulse. the receiver pulls down the sda line during the acknowledge clock pulse so that it remains stable low during the high period of this clock pulse. the master can then generate either a stop (p) condition to stop the transfer or a repeated start (sr) condition to start a new transfer. a master-receiver indicates the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocke d out by the slave. the slave-transmitter releases the data line to allow the master to generate a stop (p) or repeated start (sr) condition. fig 14. acknowledge on the i 2 c-bus mbc60 2 s start condition 9 8 2 1 clock pulse for acknowledgement not acknowledge acknowledge data output by transmitter data output by receiver scl from master fig 15. data transfer on the i 2 c-bus msc60 8 sr or p sda sr p scl stop or repeated start condition s or sr start or repeated start condition 1 2 3 - 8 9 ack 9 ack 78 12 msb acknowledgement signal from slave byte complete, interrupt within slave clock line held low while interrupts are serviced acknowledgement signal from receiver
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 18 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.5 7-bit addressing during the i 2 c-bus address procedure, the first byte after the start condition is used to determine which slave will be selected by the master. several address numbers are reserved. during device configuration, the designer must ensure that collisions with these reserv ed addresses cannot occur. check the i 2 c-bus specification for a complete list of reserved addresses. the i 2 c-bus address specification is dependent on the definition of pin ea. immediately after releasing pin nrstpd or after a powe r-on reset, the device defines the i 2 c-bus address according to pin ea. if pin ea is set low, the upper 4 bits of the device bus address are reserved by nxp semiconductors and set to 0101b for all mfrc522 devices. the remaining 3 bits (adr_0, adr_1, adr_2) of the slave address can be freely configured by the customer to prevent collisions with other i 2 c-bus devices. if pin ea is set high, adr_0 to adr_5 can be completely specified at the external pins according to table 5 on page 8 . adr_6 is always set to logic 0. in both modes, the external address coding is latched immediately after releasing the reset condition. further changes at the used pins are not taken into consideration. depending on the external wiring, the i 2 c-bus address pins can be used for test signal outputs. 8.1.4.6 register write access to write data from the host controller using the i 2 c-bus to a specific register in the mfrc522 the following frame format must be used. ? the first byte of a frame indicates the device address according to the i 2 c-bus rules. ? the second byte indicates the register address followed by up to n-data bytes. in one frame all data bytes are written to t he same register address. this enables fast fifo buffer access. the read/write (r/w ) bit is set to logic 0. fig 16. first byte following the start procedure 001aak59 1 slave address bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w msb lsb
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 19 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.7 register read access to read out data from a specific register address in the mfrc522, the host controller must use the following procedure: ? firstly, a write access to th e specific register address must be performed as indicated in the frame that follows ? the first byte of a frame indicates the device address according to the i 2 c-bus rules ? the second byte indicates the register address. no data bytes are added ? the read/write bit is 0 after the write access, read a ccess can start. the host sends the device address of the mfrc522. in response, the mfrc522 sends the content of the read access register. in one frame all data bytes can be read from the same register address. this enables fast fifo buffer access or register polling. the read/write (r/w) bit is set to logic 1. fig 17. register read and write access 001aak59 2 sa00 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] write cycle 0 (w) a data [7:0] [0:n] [0:n] [0:n] a p sa00 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] read cycle optional, if the previous access was on the same register address 0 (w) a p p s s start condition p stop condition a acknowledge a not acknowledge w write cycle r read cycle a i 2 c-bus slave address [a7:a0] sent by master sent by slave data [7:0] 1 (r) a data [7:0] a
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 20 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.8 high-speed mode in high-speed mode (hs mode), the device can tran sfer information at data rates of up to 3.4 mbit/s, while remaining fully downward-co mpatible with fast or standard mode (f/s mode) for bidirectional communication in a mixed-speed bus system. 8.1.4.9 high-speed transfer to achieve data rates of up to 3.4 mbit/s the following improvements have been made to i 2 c-bus operation. ? the inputs of the device in hs mode incorpor ate spike suppression, a schmitt trigger on the sda and scl inputs and different timing constants when compared to f/s mode ? the output buffers of the device in hs mode incorpor ate slope contro l of the falling edges of the sda and scl signals with different fall times compared to f/s mode 8.1.4.10 serial data transfer format in hs mode the hs mode serial data transfer format meets the standard mode i 2 c-bus specification. hs mode can only start after all of the followin g conditions (all of wh ich are in f/s mode): 1. start condition (s) 2. 8-bit master code (00001xxxb) 3. not-acknowledge bit (a ) when hs mode starts, the active master sends a repeated start condition (sr) followed by a 7-bit slave address with a r/w bit address and receives an acknowledge bit (a) from the selected mfrc522. data transfer continues in hs mode after th e next repeated start (sr), only switching back to f/s mode after a stop condition (p). to reduce the overhead of the master code, a master links a number of hs mode transfers, separated by repeated start conditions (sr). fig 18. i 2 c-bus hs mode protocol switch f/s mode hs mode (current-source for scl high enabled) f/s mode 001aak74 9 a a a/a data (n-bytes + a) s r/w master code sr slave address hs mode continues sr slave address p
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 21 of 96 nxp semiconductors mfrc522 contactless reader ic fig 19. i 2 c-bus hs mode protocol frame msc61 8 8-bit master code 0000 1xxx a t h t 1 s f/s mode hs mode if p then f/s mode if sr (dotted lines) then hs mode 16789 6789 1 1 2 to 5 2 to 5 2 to 5 67 89 sda high scl high sda high scl high t h t fs sr sr p n + (8-bit data + a/a) 7-bit sla r/w a = master current source pull-up = resistor pull-up
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 22 of 96 nxp semiconductors mfrc522 contactless reader ic 8.1.4.11 switching between f/s mode and hs mode after reset and initialization, th e mfrc522 is in fast mode (which is in effect f/s mode as fast mode is downward-compatible with standard mode). the connected mfrc522 recognizes the ?s 00001xxx a? sequence and s witches its internal circuitry from the fast mode setting to the hs mode setting. the following actions are taken: 1. adapt the sda and scl input filters accord ing to the spike suppression requirement in hs mode. 2. adapt the slope control of the sda output stages. it is possible for system configurations that do not have other i 2 c-bus devices involved in the communication to switch to hs mode permanently. this is implemented by setting status2reg register?s i 2 cforcehs bit to logic 1. in permanent hs mode, the master code is not required to be sent. this is not defin ed in the specification and must only be used when no other devices are connected on the bus. in addition, spikes on the i 2 c-bus lines must be avoided because of the reduced spike suppression. 8.1.4.12 mfrc522 at lower speed modes mfrc522 is fully downward-compatible and can be connected to an f/s mode i 2 c-bus system. the device stays in f/s mode and communicates at f/s mode speeds because a master code is not transmitted in this configuration.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 23 of 96 nxp semiconductors mfrc522 contactless reader ic 8.2 analog interface and contactless uart 8.2.1 general the integrated contactless uart supports the external host online with framing and error checking of the protocol requirements up to 848 kbd. an external circuit can be connected to the communication interface pins mfin and mfout to modulate and demodulate the data. the contactless uart handles the protocol requirements for the communication protocols in cooperation with the host. protoc ol handling generates bit and byte-oriented framing. in addition, it handles error detection such as parity and crc, based on the various supported contactless communication protocols. remark: the size and tuning of the antenna and the power supply voltage have an important impact on the achievable operating distance. 8.2.2 tx p-driver the signal on pins tx1 and tx2 is the 13.56 mhz energy carrier modulated by an envelope signal. it can be used to drive an antenna di rectly using a few passive components for matching and filtering; see section 15 on page 78 . the signal on pins tx1 and tx2 can be configured using the txcontrolreg register; see section 9.3.2.5 on page 48 . the modulation index can be set by adjusting the impedance of the drivers. the impedance of the p-driver can be conf igured using registers cwgspreg and modgspreg. the impedance of the n-driver can be configured using the gsnreg register. the modulation index also depends on the antenna design and tuning. the txmodereg and txselreg registers control the data rate and framing during transmission and the antenna driver setting to support the different requirements at the different modes and transfer speeds. [1] x = do not care. table 15. register and bit settings controlling the signal on pin tx1 bit tx1rfen bit force 100ask bit invtx1rfon bit invtx1rfoff envelope pin tx1 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] x [1] x [1] not specified if rf is switched off 100 x [1] 0 rf pmod nmod 100 % ask: pin tx1 pulled to logic 0, independent of the invtx1rfoff bit 1rfpcwncw 01 x [1] 0 rf pmod nmod 1rfpcwncw 11 x [1] 0 0 pmod nmod 1rf_npcwncw
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 24 of 96 nxp semiconductors mfrc522 contactless reader ic [1] x = do not care. the following abbreviations have been used in table 15 and ta b l e 1 6 : ? rf: 13.56 mhz clock derived from 27.12 mhz quartz crystal oscillator divided by 2 ? rf_n: inverted 13.56 mhz clock ? gspmos: conductance, configuration of the pmos array ? gsnmos: conductance, configuration of the nmos array ? pcw: pmos conductance value for continuous wave defined by the cwgspreg register ? pmod: pmos conductance value for modula tion defined by the modgspreg register ? ncw: nmos conductance value for continuous wave defined by the gsnreg register?s cwgsn[3:0] bits ? nmod: nmos conductance value for modulation defined by the gsnreg register?s modgsn[3:0] bits ? x = do not care. remark: if only one driver is switched on, t he values for cwgspreg, modgspreg and gsnreg registers are used for both drivers. table 16. register and bit settings controlling the signal on pin tx2 bit tx1rfen bit force 100ask bit tx2cw bit invtx2rfon bit invtx2rfoff envelope pin tx2 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] x [1] x [1] x [1] not specified if rf is switched off 1000 x [1] 0 rf pmod nmod - 1rfpcwncw 1x [1] 0 rf_n pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw conductance always cw for the tx2cw bit 1x [1] x [1] rf_n pcw ncw 100 x [1] 0 0 pmod nmod 100 % ask: pin tx2 pulled to logic 0 (independent of the invtx2rfon/inv tx2rfoff bits) 1rfpcwncw 1x [1] 0 0 pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw 1x [1] x [1] rf_n pcw ncw
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 25 of 96 nxp semiconductors mfrc522 contactless reader ic 8.2.3 serial data switch two main blocks are implemented in the mfrc522. the digital block comprises the state machines, encoder/decoder logic. the analog block comprises the modulator and antenna drivers, the receiver and amplifiers. it is possible for the interface between these two blocks to be configured so that the inte rfacing signals are rout ed to pins mfin and mfout. this topology allows the analog block of the mfrc522 to be connected to the digital block of another device. the serial signal switch is controll ed by the txselreg and rxselreg registers. figure 20 shows the serial data switch for p-driver tx1 and tx2. 8.2.4 mfin and mfout interface support the mfrc522 is divided into a digital circuit bl ock and an analog circuit block. the digital block contains state machines, encoder and decoder logic and so on. the analog block contains the modulator and antenna drivers, receiver and amplifiers. the interface between these two blocks can be configured so that the interfacing signals can be routed to pins mfin and mfout; see figure 21 on page 26 . this configuration is implemented using txselreg register?s mfoutsel[3:0] and driversel[1:0] bits and rxselreg register?s uartsel[1:0] bits. this topology allows some parts of the analog block to be connected to the digital block of another device. switch mfoutsel in the txselreg register can be used to measure mifare and iso/iec14443 a related signals. this is espe cially important during the design-in phase or for test purposes as it enables chec king of the transmitted and received data. the most important use of pins mfin and mfout is found in the active antenna concept. an external active antenna circuit can be connected to the mfrc522?s digital block. switch mfoutsel must be config ured so that the internal mille r encoded signal is sent to pin mfout (mfoutsel = 100b). uartsel[1:0] must be configured to receive a manchester signal with subcarrier from pin mfin (uartsel[1:0] = 01). it is possible to connect a passive antenna to pins tx1, tx2 and rx (using the appropriate filter and matching circuit) and an active antenna to pins mfout and mfin at the same time. in this configur ation, two rf circuits can be driven (one after another) by a single host processor. fig 20. serial data switch for p-driver tx1 and tx2 001aak5 93 internal coder invert if invmod = 1 driversel[1:0] 00 01 10 11 3-state to driver tx1 and tx2 0 = impedance = modulated 1 = impedance = cw 1 invert if polmfin = 0 mfin envelope
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 26 of 96 nxp semiconductors mfrc522 contactless reader ic remark: pins mfin and mfout have a dedicated supply on pin svdd with the ground on pin pvss. if pin mfin is not used it must be connected to either pi n svdd or pin pvss. if pin svdd is not us ed it must be connected to either pin dvdd, pin pvdd or any other voltage supply pin. fig 21. overview of mfin and mfout signal routing 001aak59 4 miller coder mfoutsel[3:0] uart sel[1:0] mfout mfin tx bit stream digital module mfrc522 analog module mfrc522 rx bit stream 0 1 2 3 4 5 6 7 3-state low high test bus internal envelope tx serial data stream reserved rx serial data stream manchester decoder subcarrier demodulator driver sel[1:0] 0 1 2 3 3-state internal envelope high envelope from pin mfin 0 1 2 3 low manchester with subcarrier internal modulated nrz coding without subcarrier (> 106 kbd) modulator driver tx2 tx1 rx demodulator
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 27 of 96 nxp semiconductors mfrc522 contactless reader ic 8.2.5 crc coprocessor the following crc coprocessor parameters can be configured: ? the crc preset value can be either 000 0h, 6363h, a671h or ffffh depending on the modereg register?s crcpreset[1:0] bits setting ? the crc polynomial for the 16-bit crc is fixed to x 16 +x 12 +x 5 +1 ? the crcresultreg register indicates the result of the crc calculat ion. this register is split into two 8-bit registers representing the higher and lower bytes. ? the modereg register?s msbfirst bit indica tes that data will be loaded with the msb first. 8.3 fifo buffer an 8 64 bit fifo buffer is used in the mfrc522. it buffers the input and output data stream between the host and the mfrc522?s internal state machin e. this makes it possible to manage data streams up to 64 by tes long without the need to take timing constraints into account. 8.3.1 accessing the fifo buffer the fifo buffer input and output data bus is connected to the fifodatareg register. writing to this register stores one byte in the fifo buffer and increments the internal fifo buffer write pointer. reading fr om this register shows the fifo buffer contents stored in the fifo buffer read pointer and decrements the fifo buffer read pointer. the distance between the write and read pointer can be obtained by reading the fifolevelreg register. when the microcontroller starts a command, the mfrc522 can, while the command is in progress, access the fifo buffer according to that command. only one fifo buffer has been implemented which can be used for input and output. the microcontroller must ensure that there are not any unintentional fifo buffer accesses. 8.3.2 controlling the fifo buffer the fifo buffer pointers can be reset by se tting fifolevelreg register?s flushbuffer bit to logic 1. consequently, the fifolevel[6:0] bits are all set to logic 0 and the errorreg register?s bufferovfl bit is cleared. the by tes stored in the fifo buffer are no longer accessible allowing the fi fo buffer to be filled with anothe r 64 bytes. 8.3.3 fifo buffer status information the host can get the following fi fo buffer status information: ? number of bytes stored in the fifo buff er: fifolevelreg register?s fifolevel[6:0] ? fifo buffer almost full warning: status1reg register?s hialert bit table 17. crc coprocessor parameters parameter value crc register length 16-bit crc crc algorithm algorithm according to iso/iec 14443 a and itu-t crc preset value 0000h, 6363h, a671h or ffffh depending on the setting of the modereg register?s crcpreset[1:0] bits
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 28 of 96 nxp semiconductors mfrc522 contactless reader ic ? fifo buffer almost empty warning: status1reg register?s loalert bit ? fifo buffer overflow warning: errorreg re gister?s bufferovfl bit. the bufferovfl bit can only be cleared by setting the fifo levelreg register?s flushbuffer bit. the mfrc522 can generate an interrupt signal when: ? comienreg register?s loalertien bit is set to logic 1. it activates pin irq when status1reg register?s loalert bit changes to logic 1. ? comienreg register?s hialertien bit is set to logic 1. it activates pin irq when status1reg register?s hialert bit changes to logic 1. if the maximum number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the hialert bit is set to logic 1. it is generated according to equation 3 : (3) if the number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the loalert bit is set to logic 1. it is generated according to equation 4 : (4) 8.4 interrupt request system the mfrc522 indicates certain events by settin g the status1reg register?s irq bit and, if activated, by pin irq. the signal on pin irq can be used to interrupt the host using its interrupt handling ca pabilities. this allows the implemen tation of efficient host software. 8.4.1 interrupt sources overview ta b l e 1 8 shows the available interrupt bits, the corresponding source and the condition for its activation. the comirqreg register?s timerirq interrupt bit indicates an interrupt set by the timer unit which is set when the timer decrements from 1 to 0. the comirqreg register?s txirq bit indicates th at the transmitter has finished. if the state changes from sending data to transmitting the end of the frame pattern, the transmitter unit automatically sets th e interrupt bit. the crc copr ocessor sets the divirqreg register?s crcirq bit after processing all the fifo buffer data which is indicated by crcready bit = 1. the comirqreg register?s rxirq bit indicates an interrupt when the end of the received data is detected. the comirqreg register?s idleirq bit is set if a command finishes and the command[3:0] value in the commandr eg register changes to idle (see table 149 on page 67 ). the comirqreg register?s hialertirq bit is set to logic 1 when the status1reg register?s hialert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. the comirqreg register?s loalertirq bit is set to logic 1 when the status1reg register?s loalert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. hialert 64 fifolength ? () waterlevel = loalert fifolength waterlevel =
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 29 of 96 nxp semiconductors mfrc522 contactless reader ic the comirqreg register?s errirq bit indicates an error detected by the contactless uart during send or receive. this is indicated when any bit is set to logic 1 in register errorreg. 8.5 timer unit the mfrc522a has a timer unit which the exte rnal host can use to manage timing tasks. the timer unit can be used in one of th e following timer/counter configurations: ? timeout counter ? watchdog counter ? stop watch ? programmable one shot ? periodical trigger the timer unit can be used to measure the time interval between two events or to indicate that a specific event occurred after a specific time. the timer can be triggered by events explained in the paragraphs below. the timer does not influence any internal events, for example, a time-out during data reception d oes not automatically influence the reception process. furthermore, several timer-related bi ts can be used to generate an interrupt. the timer has an input clock of 13.56 mhz derived from the 27.12 mhz quartz crystal oscillator. the timer consists of two stages: prescaler and counter. the prescaler (tprescaler) is a 12-bit counter. the reload values (treloadval_hi[7:0] and treloadval_lo[7:0]) for tprescaler can be set between 0 and 4095 in the tmodereg register?s tprescaler_hi[3:0] bits and tpre scalerreg register?s tprescaler_lo[7:0] bits. the reload value for the counter is defined by 16 bits between 0 and 65535 in the treloadreg register. the current value of the timer is indicated in the tcountervalreg register. when the counter reaches 0, an interrupt is automatically generated, indicated by the comirqreg register?s timerirq bit setting. if enabled, this event can be indicated on pin irq. the timerirq bit can be set and reset by the host. depending on the configuration, the timer will st op at 0 or restart with the value set in the treloadreg register. the timer status is indicated by the status1reg register?s trunning bit. table 18. interrupt sources interrupt flag interrupt source trigger action timerirq timer unit the timer counts from 1 to 0 txirq transmitter a transmitted data stream ends crcirq crc coprocessor all data from the fifo buffer has been processed rxirq receiver a received data stream ends idleirq comirqreg register command execution finishes hialertirq fifo buffer the fifo buffer is almost full loalertirq fifo buffer the fifo buffer is almost empty errirq contactless uart an error is detected
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 30 of 96 nxp semiconductors mfrc522 contactless reader ic the timer can be started manually using the controlreg register?s tstartnow bit and stopped using the controlreg register?s tstopnow bit. the timer can also be activated automatically to meet any dedicated protocol requirements by setting the tmodereg register?s tauto bit to logic 1. the delay time of a timer stage is set by the reload value + 1. th e total delay time (t d ) is calculated using equation 5 : (5) an example of calculating total delay time (t d ) is shown in equation 6 , where the tprescaler value = 4095 and treloadval = 65535: (6) example: to give a delay time of 25 s requires 339 clock cycles to be counted and a tprescaler value of 169. this configures the timer to count up to 65535 time-slots for every 25 s period. t d tprescaler 2 1 + () treloadval 1 + () 13.56 mhz --------------------------------------------------------------------------------------------------------- = 39.59 s 4095 2 1 + () 65535 1 + () 13.56 mhz ---------------------------------------------------------------------- - =
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 31 of 96 nxp semiconductors mfrc522 contactless reader ic 8.6 power reduction modes 8.6.1 hard power-down hard power-down is enabled wh en pin nrstpd is low. this tu rns off all internal current sinks including the oscillator. all digital input buffers are separated from the input pins and clamped internally (except pin nrstpd). the out put pins are frozen at either a high or low level. 8.6.2 soft power-down mode soft power-down mode is entered immediately after the commandreg register?s powerdown bit is set to logic 1. all internal current sinks are switched off, including the oscillator buffer. however, the digital input bu ffers are not separated from the input pins and keep their functionality. the digita l output pins do not change their state. during soft power-down, all re gister values, the fifo buffer content and the configuration keep their current contents. after setting the powerdown bit to logic 0, it takes 1024 clocks until the soft power-down mode is exited indicated by the powerdown bi t. setting it to logic 0 does not immediately clear it. it is cleared automatically by the mfrc522 when soft power-down mode is exited. remark: if the internal oscillator is us ed, you must take into acco unt that it is supplied by pin avdd and it will take a certain time (t osc ) until the oscillator is stable and the clock cycles can be detected by the internal logic. it is recommended for the serial uart, to first send the value 55h to the mf rc522. the oscillator must be stable for further access to the registers. to ensure this, perform a re ad access to address 0 until the mfrc522 answers to the last read command with the register content of address 0. this indicates that the mfrc522 is ready. 8.6.3 transmitter power-down mode the transmitter power-down mode switches of f the internal antenna drivers thereby, turning off the rf field. transmitter power-do wn mode is entered by setting either the txcontrolreg register?s tx1rfen bit or tx2rfen bit to logic 0. 8.7 oscillator circuit fig 22. quartz crystal connection 001aak5 95 mfrc522 27.12 mhz oscout oscin
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 32 of 96 nxp semiconductors mfrc522 contactless reader ic the clock applied to the mfrc522 provides a time basis for the synchronous system?s encoder and decoder. the stabilit y of the clock frequen cy, therefore, is an important factor for correct operation. to obtain optimum perf ormance, clock jitter must be reduced as much as possible. this is best achieved using the internal oscillator buffer with the recommended circuitry. if an external clock source is used, the clock signal must be applied to pin oscin. in this case, special care must be ta ken with the clock duty cycle and clock jitter and the clock quality must be verified. 8.8 reset and oscillator start-up time 8.8.1 reset timing requirements the reset signal is filtered by a hysteresis ci rcuit and a spike filter before it enters the digital circuit. the spike filter rejects signals shorter than 10 ns. in order to perform a reset, the signal must be low for at least 100 ns. 8.8.2 oscillator start-up time if the mfrc522 has been set to a power-down mode or is powered by a v ddx supply, the start-up time for the mfrc522 depends on the o scillator used and is shown in figure 23 . the time (t startup ) is the start-up time of the crystal o scillator circuit. the crystal oscillator start-up time is defined by the crystal. the time (t d ) is the internal delay time of the mfrc522 when the clock signal is stable before the mfrc522 can be addressed. the delay time is calculated by: (7) the time (t osc ) is the sum of t d and t startup . fig 23. oscillator start-up time t d 1024 27 s ------------- - 37.74 s == 001aak5 96 t startup t d t osc t device activation oscillator clock stable clock ready
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 33 of 96 nxp semiconductors mfrc522 contactless reader ic 9. mfrc522 registers 9.1 register bit behavior depending on the functionality of a register, the access conditions to the register can vary. in principle, bits with same behavior are grouped in common registers. the access conditions are described in ta b l e 1 9 . table 19. behavior of register bits and their designation abbreviation behavior description r/w read and write these bits can be written and read by the microcontroller. since they are used only for control purposes, their content is not influenced by internal state machines, for example the comienreg register can be written and read by the microcontroller. it will also be read by internal state machines but never changed by them. d dynamic these bits can be written and read by the microcontroller. nevertheless, they can also be wr itten automatically by internal state machines, for example the commandreg register changes its value automatically after the execution of the command. r read only these register bits hold values which are determined by internal states only, for example the crcready bit cannot be written externally but shows internal states. w write only reading these register bits always returns zero. reserved - these registers are reserved for future use and must not be changed. in case of a write access, it is recommended to always write the value ?0?. rft - these register bits are reserved for future use or are for production tests and must not be changed.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 34 of 96 nxp semiconductors mfrc522 contactless reader ic 9.2 register overview table 20. mfrc522 register overview address (hex) register name function refer to page 0: command and status 00h reserved reserved for future use table 21 on page 36 01h commandreg starts and stops command execution table 23 on page 36 02h comlenreg enable and disable interrupt request control bits table 25 on page 36 03h divlenreg enable and disable interrupt request control bits table 27 on page 37 04h comirqreg interrupt request bits table 29 on page 37 05h divirqreg interrupt request bits table 31 on page 38 06h errorreg error bits showing the error status of the last command executed table 33 on page 39 07h status1reg communication status bits table 35 on page 40 08h status2reg receiver and transmitter status bits table 37 on page 41 09h fifodatareg input and output of 64 byte fifo buffer table 39 on page 42 0ah fifolevelreg number of bytes stored in the fifo buffer table 41 on page 42 0bh waterlevelreg level for fifo underflow and overflow warning table 43 on page 42 0ch controlreg miscellaneous control registers table 45 on page 43 0dh bitframingreg adjustments for bit-oriented frames table 47 on page 44 0eh collreg bit position of the firs t bit-collision detected on the rf interface table 49 on page 44 0fh reserved reserved for future use table 51 on page 45 page 1: command 10h reserved reserved for future use table 53 on page 45 11h modereg defines general modes for transmitting and receiving table 55 on page 46 12h txmodereg defines transmission data rate and framing table 57 on page 46 13h rxmodereg defines reception data rate and framing table 59 on page 47 14h txcontrolreg controls the logical beha vior of the antenna driver pins tx1 and tx2 table 61 on page 48 15h txaskreg controls the setting of the transmis sion modulation table 63 on page 49 16h txselreg selects the internal sources for the antenna driver table 65 on page 49 17h rxselreg selects internal receiver settings table 67 on page 50 18h rxthresholdreg selects thresholds for the bit decoder table 69 on page 51 19h demodreg defines demodulator settings table 71 on page 51 1ah reserved reserved for future use table 73 on page 52 1bh reserved reserved for future use table 75 on page 52 1ch mftxreg controls some mifare communication transmit parameters table 77 on page 52 1dh mfrxreg controls some mifare communication receive parameters table 79 on page 53 1eh reserved reserved for future use table 81 on page 53 1fh serialspeedreg selects the speed of the serial uart interface table 83 on page 53 page 2: configuration 20h reserved reserved for future use table 85 on page 54
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 35 of 96 nxp semiconductors mfrc522 contactless reader ic 21h crcresultreg shows the msb and lsb values of the crc calculation table 87 on page 54 22h table 89 on page 54 23h reserved reserved for future use table 91 on page 55 24h modwidthreg controls the modwidth setting table 93 on page 55 25h reserved reserved for future use table 95 on page 55 26h rfcfgreg configures the receiver gain table 97 on page 56 27h gsnreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation table 99 on page 56 28h cwgspreg defines the conductance of the p-driver output during periods of no modulation table 101 on page 57 29h modgspreg defines the conductance of the p-driver output during periods of modulation table 103 on page 57 2ah tmodereg defines settings for the internal timer table 105 on page 57 2bh tprescalerreg table 107 on page 58 2ch treloadreg defines the 16-bit timer reload value table 109 on page 59 2dh table 111 on page 59 2eh tcountervalreg shows the 16-bit timer value table 113 on page 59 2fh table 115 on page 59 page 3: test register 30h reserved reserved for future use table 117 on page 60 31h testsel1reg general test signal configuration table 119 on page 60 32h testsel2reg general test signa l configuration and prbs control table 121 on page 60 33h testpinenreg enables pin output driver on pins d1 to d7 table 123 on page 61 34h testpinvaluereg defines the values for d1 to d7 when it is used as an i/o bus table 125 on page 61 35h testbusreg shows the status of the internal test bus table 127 on page 62 36h autotestreg controls the digital self test table 129 on page 62 37h versionreg shows th e software version table 131 on page 63 38h analogtestreg controls the pins aux1 and aux2 table 133 on page 63 39h testdac1reg defines the test value for testdac1 table 135 on page 65 3ah testdac2reg defines the test value for testdac2 table 137 on page 65 3bh testadcreg shows the value of adc i and q channels table 139 on page 65 3ch to 3fh reserved reserved for production tests table 141 to ta b l e 1 4 7 on page 66 table 20. mfrc522 register overview ?continued address (hex) register name function refer to
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 36 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3 register descriptions 9.3.1 page 0: command and status 9.3.1.1 reserved register 00h functionality is reserv ed for future use. 9.3.1.2 commandreg register starts and stops command execution. 9.3.1.3 comienreg register control bits to enable and disable the passing of interrupt requests. table 21. reserved register (address 00h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 22. reserved register bit descriptions bit symbol description 7 to 0 - reserved table 23. commandreg register (address 01h); reset value: 20h bit allocation bit 7 6 5 4 3 2 1 0 symbol: reserved rcvoff powerdown command[3:0] access: - r/w d d table 24. commandreg register bit descriptions bit symbol value description 7 to 6 reserved - reserved for future use 5 rcvoff 1 analog part of the receiver is switched off 4 powerdown 1 soft power-down mode entered 0 mfrc522 starts the wake up procedure during which this bit is read as a logic 1; it is read as a logic 0 when the mfrc522 is ready; see section 8.6.2 on page 31 remark: the powerdown bit cannot be set when the softreset command is activated 3 to 0 command[3:0] - activates a command based on the command value; reading this register shows which co mmand is executed; see section 10.3 on page 67 table 25. comienreg register (address 02h); reset value: 80h bit allocation bit 7 6 5 4 3 2 1 0 symbol irqinv txien rxien idleien hialertien loalertien errien timerien access r/w r/w r/w r/w r/w r/w r/w r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 37 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.4 divienreg register control bits to enable and disable the passing of interrupt requests. 9.3.1.5 comirqreg register interrupt re quest bits. table 26. comienreg register bit descriptions bit symbol value description 7 irqinv 1 signal on pin irq is inverted with respect to the status1reg register?s irq bit 0 signal on pin irq is equal to the irq bit; in combination with the divienreg register?s irqpushpull bit, the default value of logic 1 ensures that the output level on pin irq is 3-state 6 txien - allows the transmitter interrupt r equest (txirq bit) to be propagated to pin irq 5 rxien - allows the receiver interrupt request (rxirq bit) to be propagated to pin irq 4 idleien - allows the idle interrupt request (i dleirq bit) to be propagated to pin irq 3 hialertien - allows the high alert interrupt re quest (hialertirq bit) to be propagated to pin irq 2 loalertien - allows the low alert interrupt re quest (loalertirq bit) to be propagated to pin irq 1 errien - allows the error interrupt request (errirq bit) to be propagated to pin irq 0 timerien - allows the timer interrupt request (timerirq bit) to be propagated to pin irq table 27. divienreg register (address 03h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol irqpushpull reserved mfinactien reserved crcien reserved access r/w - r/w - r/w - table 28. divienreg register bit descriptions bit symbol value description 7 irqpushpull 1 pin irq is a standard cmos output pin 0 pin irq is an open-drain output pin 6 to 5 reserved - reserved for future use 4 mfinactien - allows the mfin active interrupt request to be propagated to pin irq 3 reserved - reserved for future use 2 crcien - allows the crc interrupt request, indicated by the divirqreg register?s crcirq bit, to be propagated to pin irq 1 to 0 reserved - reserved for future use table 29. comirqreg register (address 04h); reset value: 14h bit allocation bit 7 6 5 4 3 2 1 0 symbol set1 txirq rxirq idleirq hia lertirq loalertirq errirq timerirq access w d d d d d d d
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 38 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.6 divirqreg register interrupt re quest bits. table 30. comirqreg register bit descriptions all bits in the comirqreg register are cleared by software. bit symbol value description 7 set1 1 indicates that the marked bits in the comirqreg register are set 0 indicates that the marked bits in the comirqreg register are cleared 6 txirq 1 set immediately after the last bit of the transmitted data was sent out 5 rxirq 1 receiver has detected the end of a valid data stream if the rxmodereg register?s rxnoerr bit is set to logic 1, the rxirq bit is only set to logic 1 when data bytes are available in the fifo 4 idleirq 1 if a command terminates, for example, when the commandreg changes its value from any command to the idle command (see table 149 on page 67 ) if an unknown command is star ted, the commandreg register command[3:0] value changes to the id le state and the idleirq bit is set the microcontroller starting the idle command does not set the idleirq bit 3 hialertirq 1 the status1reg register?s hialert bit is set in opposition to the hialert bit, the hialertirq bit stores this event and can only be reset as indicated by the set1 bit in this register 2 loalertirq 1 status1reg register?s loalert bit is set in opposition to the loalert bit, the lo alertirq bit stores this event and can only be reset as indicated by the set1 bit in this register 1 errirq 1 any error bi t in the errorreg register is set 0 timerirq 1 the timer decrements the timer value in register tcountervalreg to zero table 31. divirqreg register (address 05 h); reset value: x0h bit allocation bit 7 6 5 4 3 2 1 0 symbol set2 reserved mfinacti rq reserved crcirq reserved access w - d - d - table 32. divirqreg register bit descriptions all bits in the divirqreg register are cleared by software. bit symbol value description 7 set2 1 indicates that the marked bits in the divirqreg register are set 0 indicates that the marked bits in the divirqreg register are cleared 6 to 5 reserved - reserved for future use 4 mfinactirq 1 mfin is active this interrupt is set when either a rising or falling signal edge is detected 3 reserved - reserved for future use 2 crcirq 1 the calccrc command is active and all data is processed 1 to 0 reserved - reserved for future use
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 39 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.7 errorreg register error bit register showing the error status of the last command executed. [1] command execution clears all error bits exc ept the temperr bit. cannot be set by software. table 33. errorreg register (address 06h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol wrerr temperr reserved bufferov fl collerr crcerr parityerr protocolerr access r r - r r r r r table 34. errorreg register bit descriptions bit symbol value description 7 wrerr 1 data is written into the fifo buffer by the host during the mfauthent command or if data is written into the fifo buffer by the host during the time between sending the last bit on the rf interface and receiving the last bit on the rf interface 6 temperr [1] 1 internal temperature sensor detects overheating, in which case the antenna drivers are automatically switched off 5 reserved - reserved for future use 4 bufferovfl 1 the host or a mfrc522?s internal state machine (e.g. receiver) tries to write data to the fifo buffer even though it is already full 3 collerr 1 a bit-collision is detected cleared automatically at receiver start-up phase only valid during the bitwise anticollision at 106 kbd always set to logic 0 during communication protocols at 212 kbd, 424 kbd and 848 kbd 2 crcerr 1 the rxmodereg register?s rxcrcen bit is set and the crc calculation fails automatically cleared to logic 0 during receiver start-up phase 1 parityerr 1 parity check failed automatically cleared during receiver start-up phase only valid for iso/iec 14443 a/mifare communication at 106 kbd 0 protocolerr 1 set to logic 1 if the sof is incorrect automatically cleared during receiver start-up phase bit is only valid for 106 kbd during the mfauthent comma nd, the protocolerr bit is set to logic 1 if the number of bytes received in one data stream is incorrect
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 40 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.8 status1reg register contains status bits of the crc, interrupt and fifo buffer. table 35. status1reg register (address 07h); reset value: 21h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved crcok crcready irq trunning reserved hialert loalert access - r r r r - r r table 36. status1reg register bit descriptions bit symbol value description 7 reserved - reserved for future use 6 crcok 1 the crc result is zero for data transmission and reception, the crcok bit is undefined: use the errorreg register?s crcerr bit indicates the status of the crc coproc essor, during calculation the value changes to logic 0, when the calculation is done correctly the value changes to logic 1 5 crcready 1 the crc calculation has finished only valid for the crc coprocessor calculation using the calccrc command 4 irq - indicates if any interrupt source requests attention with respect to the setting of the interrupt enable bits: see the comienreg and divienreg registers 3 trunning 1 mfrc522?s timer unit is runn ing, i.e. the timer will decrement the tcountervalreg register with the next timer clock remark: in gated mode, the trunning bit is set to logic 1 when the timer is enabled by tmodereg register?s tgated[1:0] bits; this bit is not influenced by the gated signal 2 reserved - reserved for future use 1 hialert 1 the number of bytes stored in the fifo buffer corresponds to equation: example: fifo length = 60, waterlevel = 4 hialert = 1 fifo length = 59, waterlevel = 4 hialert = 0 0 loalert 1 the number of bytes stored in the fifo buffer corresponds to equation: example: fifo length = 4, waterlevel = 4 loalert = 1 fifo length = 5, waterlevel = 4 loalert = 0 hialert 64 fifolength ? ) ( waterlevel = loalert fifolength waterlevel =
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 41 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.9 status2reg register contains status bits of the receiver, transmitter and data mode detector. table 37. status2reg register (address 08h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol tempsensclear i 2 cforcehs reserved mfcrypto1on modemstate[2:0] access r/w r/w - d r table 38. status2reg register bit descriptions bit symbol value description 7 tempsensclear 1 clears the temperature er ror if the temperature is below the alarm limit of 125 c 6i 2 cforcehs i 2 c-bus input filter settings: 1the i 2 c-bus input filter is set to the high-speed mode independent of the i 2 c-bus protocol 0the i 2 c-bus input filter is set to the i 2 c-bus protocol used 5 to 4 reserved - reserved 3 mfcrypto1on - indicates that the mifare crypto1 un it is switched on and therefore all data communicati on with the card is encrypted can only be set to logic 1 by a successful execution of the mfauthent command only valid in read/write mode for mifare standard cards this bit is cleared by software 2 to 0 modemstate[2:0] - shows the state of the transmitter and receiver state machines: 000 idle 001 wait for the bitframingreg register?s startsend bit 010 txwait: wait until rf field is present if the tmodereg register?s txwaitrf bit is set to logic 1 the minimum time for txwait is defined by the txwaitreg register 011 transmitting 100 rxwait: wait until rf field is present if the tmodereg register?s txwaitrf bit is set to logic 1 the minimum time for rxwait is defined by the rxwaitreg register 101 wait for data 110 receiving
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 42 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.10 fifoda tareg register input and output of 64 byte fifo buffer. 9.3.1.11 fifolevelreg register indicates the number of bytes stored in the fifo. 9.3.1.12 waterlevelreg register defines the level for fifo under- and overflow warning. table 39. fifodatareg register (address 09h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol fifodata[7:0] access d table 40. fifodatareg register bit descriptions bit symbol description 7 to 0 fifodata[7:0] data input and output por t for the internal 64-byte fifo buffer fifo buffer acts as parallel in/parallel out converter for all serial data stream inputs and outputs table 41. fifolevelreg register (addre ss 0ah); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol flushbuffer fifolevel[6:0] access w r table 42. fifolevelreg register bit descriptions bit symbol value description 7 flushbuffer 1 immediately clears the inte rnal fifo buffer?s read and write pointer and errorreg register?s bufferovfl bit reading this bit always returns 0 6 to 0 fifolevel [6:0] - indicates the number of byte s stored in the fifo buffer writing to the fifodatareg register increments and reading decrements the fifolevel value table 43. waterlevelreg register (address 0bh); reset value: 08h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved waterlevel[5:0] access - r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 43 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.13 controlreg register miscellaneous control bits. table 44. waterlevelreg register bit descriptions bit symbol description 7 to 6 reserved reserved for future use 5 to 0 waterlevel [5:0] defines a warning level to indicate a fifo buffer overflow or underflow: status1reg register?s hialert bit is set to logic 1 if the remaining number of bytes in the fifo buffer space is equal to, or less than the defined number of waterlevel bytes status1reg register?s loalert bit is set to logic 1 if equal to, or less than the waterlevel bytes in the fifo buffer remark: to calculate values for hialert and loalert see section 9.3.1.8 on page 40 . table 45. controlreg register (address 0ch); reset value: 10h bit allocation bit 7 6 5 4 3 2 1 0 symbol tstopnow tstartnow reserved rxlastbits[2:0] access w w - r table 46. controlreg register bit descriptions bit symbol value description 7 tstopnow 1 timer stops immediately reading this bit alwa ys returns it to 0 6 tstartnow 1 timer starts immediately reading this bit alwa ys returns it to 0 5 to 3 reserved - reserved for future use 2 to 0 rxlastbits[2:0] - indicates the number of valid bits in the last received byte if this value is zero, the whole byte is valid
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 44 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.14 bitframingreg register adjustments for bit-oriented frames. 9.3.1.15 collreg register defines the first bit-collision detected on the rf interface. table 47. bitframingreg register (address 0dh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol startsend rxalign[2:0] reserved txlastbits[2:0] access w r/w - r/w table 48. bitframingreg register bit descriptions bit symbol value description 7 startsend 1 starts the transmission of data only valid in combination with the transceive command 6 to 4 rxalign[2:0] used fo r reception of bit-oriented frames: defines the bit position for the first bit received to be stored in the fifo buffer example: 0 lsb of the received bit is stor ed at bit position 0, the second received bit is stored at bit position 1 1 lsb of the received bit is stor ed at bit position 1, the second received bit is stored at bit position 2 7 lsb of the received bit is stor ed at bit position 7, the second received bit is stored in the next byte that follows at bit position 0 these bits are only to be us ed for bitwise anticollision at 106 kbd, for all other modes they are set to 0 3 reserved - reserved for future use 2 to 0 txlastbits[2:0] - used for transmissi on of bit oriented frames: defines the number of bits of the last byte that will be transmitted 000b indicates that all bits of the last byte will be transmitted table 49. collreg register (address 0e h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol valuesaftercoll reserved collposnotvalid collpos[4:0] access r/w - r r table 50. collreg register bit descriptions bit symbol value description 7 valuesaftercoll 0 all received bits will be cleared after a collision only used during bitwise anticollision at 106 kbd, otherwise it is set to logic 1 6 reserved - reserved for future use 5 collposnotvalid 1 no collision detected or the position of the collision is out of the range of collpos[4:0]
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 45 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.1.16 reserved register 0fh functionality is reserv ed for future use. 9.3.2 page 1: communication 9.3.2.1 reserved register 10h functionality is reserv ed for future use. 4 to 0 collpos[4:0] - shows the bit position of the first detected collision in a received frame only data bits are interpreted example: 00h indicates a bit-collision in the 32 nd bit 01h indicates a bit-collision in the 1 st bit 08h indicates a bit-collision in the 8 th bit these bits will only be interpreted if the collposnotvalid bit is set to logic 0 table 50. collreg register bit descriptions ?continued bit symbol value description table 51. reserved register (address 0fh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 52. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 53. reserved register (address 10h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 54. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 46 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.2 modereg register defines general mode settings for transmitting and receiving. 9.3.2.3 txmodereg register defines the data rate during transmission. table 55. modereg register (address 11h); reset value: 3fh bit allocation bit 7 6 5 4 3 2 1 0 symbol msbfirst reserved txwaitrf reserved polmfin reserved crcpreset[1:0] access r/w - r/w - r/w - r/w table 56. modereg register bit descriptions bit symbol value description 7 msbfirst 1 crc coprocessor calculates the crc with msb first in the crcresultreg register the values for the crcresultmsb[7:0] bits and the crcresultlsb[7:0] bits are bit reversed remark: during rf communication this bit is ignored 6 reserved - reserved for future use 5 txwaitrf 1 transmitter can only be started if an rf field is generated 4 reserved - reserved for future use 3 polmfin defines the polarity of pin mfin remark: the internal envelope signal is encoded active low, changing this bit generates a mfinactirq event 1 polarity of pin mfin is active high 0 polarity of pin mfin is active low 2 reserved - reserved for future use 1 to 0 crcpreset [1:0] defines the preset value for the crc coprocessor for the calccrc command remark: during any communication, the preset values are selected automatically according to the definition of bits in the rxmodereg and txmodereg registers 00 0000h 01 6363h 10 a671h 11 ffffh table 57. txmodereg register (address 12h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol txcrcen txspeed[2:0] invmod reserved access r/w d r/w -
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 47 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.4 rxmodereg register defines the data rate during reception. table 58. txmodereg register bit descriptions bit symbol value description 7 txcrcen 1 enables crc generation during data transmission remark: can only be set to logic 0 at 106 kbd 6 to 4 txspeed[2:0] defines the bit rate during data transmission the mfrc522 handles transfer speeds up to 848 kbd 000 106 kbd 001 212 kbd 010 424 kbd 011 848 kbd 100 reserved 101 reserved 110 reserved 111 reserved 3 invmod 1 modulation of transmitted data is inverted 2 to 0 reserved - reserved for future use table 59. rxmodereg register (address 13h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol rxcrcen rxspeed[2:0] rxnoerr rxmultiple reserved access r/w d r/w r/w - table 60. rxmodereg register bit descriptions bit symbol value description 7 rxcrcen 1 enables the crc calculation during reception remark: can only be set to logic 0 at 106 kbd 6 to 4 rxspeed[2:0] defines the bit rate while receiving data the mfrc522 handles transfer speeds up to 848 kbd 000 106 kbd 001 212 kbd 010 424 kbd 011 848 kbd 100 reserved 101 reserved 110 reserved 111 reserved 3 rxnoerr 1 an invalid received data stream (less than 4 bits received) will be ignored and the receiver remains active
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 48 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.5 txcontrolreg register controls the logical behavior of the antenna driver pins tx1 and tx2. 2 rxmultiple 0 receiver is deactivated after receiving a data frame 1 able to receive more than one data frame only valid for data rates above 106 kbd in order to handle the polling command after setting this bit the receive and transceive commands will not terminate automatically. multiple reception can only be deactivated by writing any command (except the receive command) to the commandreg regi ster, or by the host clearing the bit if set to logic 1, an error byte is added to the fifo buffer at the end of a received data stream wh ich is a copy of the errorreg register value 1 to 0 reserved - reserved for future use table 60. rxmodereg register bit descriptions ?continued bit symbol value description table 61. txcontrolreg register (address 14h); reset value: 80h bit allocation bit 7 6 5 4 3 2 1 0 symbol invtx2rf on invtx1rf on invtx2rf off invtx1rf off tx2cw reserved tx2rfen tx1rfen access r/w r/w r/w r/w r/w - r/w r/w table 62. txcontrolreg register bit descriptions bit symbol value description 7 invtx2rfon 1 output signal on pin tx2 inverted when driver tx2 is enabled 6 invtx1rfon 1 output signal on pin tx1 inverted when driver tx1 is enabled 5 invtx2rfoff 1 output signal on pin tx2 inverted when driver tx2 is disabled 4 invtx1rfoff 1 output signal on pin tx1 inverted when driver tx1 is disabled 3 tx2cw 1 output signal on pin tx2 c ontinuously delivers the unmodulated 13.56 mhz energy carrier 0 tx2cw bit is enabled to modulate the 13.56 mhz energy carrier 2 reserved - reserved for future use 1 tx2rfen 1 output signal on pin tx2 delivers the 13.56 mhz energy carrier modulated by the transmission data 0 tx1rfen 1 output signal on pin tx1 delivers the 13.56 mhz energy carrier modulated by the transmission data
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 49 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.6 txaskreg register controls transmit modulation settings. 9.3.2.7 txselreg register selects the internal sources for the analog module. table 63. txaskreg register (address 15h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved force100ask reserved access - r/w - table 64. txaskreg register bit descriptions bit symbol value description 7 reserved - reserved for future use 6 force100ask 1 forces a 100 % ask modulation independent of the modgspreg register setting 5 to 0 reserved - reserved for future use table 65. txselreg register (address 16h); reset value: 10h bit allocation bit 7 6 5 4 3 2 1 0 symbol: reserved driversel[1:0] mfoutsel[3:0] access: - r/w r/w table 66. txselreg register bit descriptions bit symbol value description 7 to 6 reserved - reserved for future use 5 to 4 driversel [1:0] - selects the input of drivers tx1 and tx2 00 3-state; in soft power-down the drivers are only in 3-state mode if the driversel[1:0] value is set to 3-state mode 01 modulation signal (envelope) from the internal encoder, miller pulse encoded 10 modulation signal (envelope) from pin mfin 11 high; the high level depends on the setting of bits invtx1rfon/invtx1rfoff and invtx2rfon/invtx2rfoff
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 50 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.8 rxselreg register selects internal re ceiver settings. 3 to 0 mfoutsel [3:0] selects the input for pin mfout 0000 3-state 0001 low 0010 high 0011 test bus signal as defined by the testsel1reg register?s tstbusbitsel[2:0] value 0100 modulation signal (envelope) from the internal encoder, miller pulse encoded 0101 serial data stream to be transmitted, data stream before miller encoder 0110 reserved 0111 serial data stream received , data stream after manchester decoder 1000 to 1111 reserved table 66. txselreg register bit descriptions ?continued bit symbol value description table 67. rxselreg register (address 17h); reset value: 84h bit allocation bit 7 6 5 4 3 2 1 0 symbol uartsel[1:0] rxwait[5:0] access r/w r/w table 68. rxselreg register bit descriptions bit symbol value description 7 to 6 uartsel [1:0] selects the input of the contactless uart 00 constant low 01 manchester with subcarrier from pin mfin 10 modulated signal from the internal analog module, default 11 nrz coding without subcarrier from pin mfin which is only valid for transfer speeds above 106 kbd 5 to 0 rxwait [5:0] - after data transmission the activation of the receiver is delayed for rxwait bit-clocks, during this ?frame guard time? any signal on pin rx is ignored this parameter is ignored by the receive command all other commands, such as tr ansceive, mfauthent use this parameter the counter starts immediately after the external rf field is switched on
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 51 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.9 rxthresholdreg register selects thresholds for the bit decoder. 9.3.2.10 demodreg register defines demodulator settings. 9.3.2.11 reserved register 1ah functionality is reserv ed for future use. table 69. rxthresholdreg register (addr ess 18h); reset value: 84h bit allocation bit 7 6 5 4 3 2 1 0 symbol minlevel[3:0] reserved colllevel[2:0] access r/w - r/w table 70. rxthresholdreg register bit descriptions bit symbol description 7 to 4 minlevel [3:0] defines the minimum signal strength at the decoder input that will be accepted if the signal strength is below this level it is not evaluated 3 reserved reserved for future use 2 to 0 colllevel [2:0] defines the minimum signal strength at the decoder input that must be reached by the weaker half-bit of the manchester encoded signal to generate a bit-collision relative to the amplitude of the stronger half-bit table 71. demodreg register (address 19h); reset value: 4dh bit allocation bit 7 6 5 4 3 2 1 0 symbol addiq[1:0] fixiq reser ved taurcv[1:0] tausync[1:0] access r/w r/w - r/w r/w table 72. demodreg register bit descriptions bit symbol value description 7 to 6 addiq [1:0] - defines the use of i and q channel during reception remark: the fixiq bit must be set to logic 0 to enable the following settings: 00 selects the stronger channel 01 selects the stronger channel and freezes the selected channel during communication 10 reserved 11 reserved 5 fixiq 1 if addiq[1:0] are set to x0b, the reception is fixed to i channel if addiq[1:0] are set to x1b, t he reception is fixed to q channel 4 reserved - reserved for future use 3 to 2 taurcv [1:0] - changes the time-constant of the internal pll during data reception remark: if set to 00b the pll is frozen during data reception 1 to 0 tausync [1:0] - changes the time constant of the internal pll during burst
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 52 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.12 reserved register 1bh functionality is reserv ed for future use. 9.3.2.13 mftxreg register controls some mifare communication transmit parameters. table 73. reserved register (address 1ah); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 74. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 75. reserved register (address 1bh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 76. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 77. mftxreg register (address 1ch); reset value: 62h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved txwait[1:0] access - r/w table 78. mftxreg register bit descriptions bit symbol description 7 to 2 reserved reserved for future use 1 to 0 txwait defines the additional response time 7 bits are added to the value of the register bit by default
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 53 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.2.14 mfrxreg register 9.3.2.15 reserved register 1eh functionality is reserv ed for future use. 9.3.2.16 serialspeedreg register selects the speed of the serial uart interface. table 79. mfrxreg register (address 1dh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved paritydisable reserved access - r/w - table 80. mfrxreg register bit descriptions bit symbol value description 7 to 5 reserved - reserved for future use 4 paritydisable 1 generation of the parity bit for transmission and the parity check for receiving is switched off the received parity bit is handled like a data bit 3 to 0 reserved - reserved for future use table 81. reserved register (address 1eh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 82. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 83. serialspeedreg register (address 1fh); reset value: ebh bit allocation bit 7 6 5 4 3 2 1 0 symbol br_t0[2:0] br_t1[4:0] access r/w r/w table 84. serialspeedreg re gister bit descriptions bit symbol description 7 to 5 br_t0[2:0] factor br_t0 adjusts the transfer speed: for description, see section 8.1.3.2 on page 11 4 to 0 br_t1[4:0] factor br_t1 adjusts the transfer speed: for description, see section 8.1.3.2 on page 11
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 54 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.3 page 2: configuration 9.3.3.1 reserved register 20h functionality is reserv ed for future use. 9.3.3.2 crcresultreg registers shows the msb and lsb values of the crc calculation. remark: the crc is split into two 8-bit registers. table 85. reserved register (address 20h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol - access reserved table 86. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 87. crcresultreg (higher bits) register (a ddress 21h); reset value: ffh bit allocation bit 7 6 5 4 3 2 1 0 symbol crcresultmsb[7:0] access r table 88. crcresultreg register higher bit descriptions bit symbol description 7 to 0 crcresultmsb [7:0] shows the value of the crcresultreg register?s most significant byte only valid if status1reg register?s crcready bit is set to logic 1 table 89. crcresultreg (lower bits) register (a ddress 22h); reset value: ffh bit allocation bit 7 6 5 4 3 2 1 0 symbol crcresultlsb[7:0] access r table 90. crcresultreg register lower bit descriptions bit symbol description 7 to 0 crcresultlsb [7:0] shows the value of the least significant byte of the crcresultreg register only valid if status1reg register?s crcready bit is set to logic 1
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 55 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.3.3 reserved register 23h functionality is reserv ed for future use. 9.3.3.4 modwidthreg register sets the modulation width. 9.3.3.5 reserved register 25h functionality is reserv ed for future use. table 91. reserved register (address 23h); reset value: 88h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 92. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 93. modwidthreg register (address 24h); reset value: 26h bit allocation bit 7 6 5 4 3 2 1 0 symbol modwidth[7:0] access r/w table 94. modwidthreg register bit descriptions bit symbol description 7 to 0 modwidth[7:0] defines the width of the mi ller modulation as multiples of the carrier frequency (modwidth + 1 / f clk ) the maximum value is half the bit period table 95. reserved register (address 25h); reset value: 87h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 96. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 56 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.3.6 rfcfgreg register configures the receiver gain. 9.3.3.7 gsnreg register defines the conductance of the antenna driver pins tx1 and tx2 for the n-driver when the driver is switched on. table 97. rfcfgreg register (address 26h); reset value: 48h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved rxgain[2:0] reserved access - r/w - table 98. rfcfgreg register bit descriptions bit symbol value description 7 reserved - reserved for future use 6 to 4 rxgain [2:0] defines the receiver?s signal voltage gain factor: 000 18 db 001 23 db 010 18 db 011 23 db 100 33 db 101 38 db 110 43 db 111 48 db 3 to 0 reserved - reserved for future use table 99. gsnreg register (address 27h ); reset value: 88h bit allocation bit 7 6 5 4 3 2 1 0 symbol cwgsn[3:0] modgsn[3:0] access r/w r/w table 100. gsnreg register bit descriptions bit symbol description 7 to 4 cwgsn [3:0] defines the conductance of the outpu t n-driver during periods without modulation which can be used to regulate the output power and subsequently current consumption and operating distance remark: the conductance value is binary-weighted during soft power-down mode the highest bit is forced to logic 1 value is only used if driver tx1 or tx2 is switched on 3 to 0 modgsn [3:0] defines the conductance of the outpu t n-driver during periods without modulation which can be used to regulate the modulation index remark: the conductance value is binary weighted during soft power-down mode the highest bit is forced to logic 1 value is only used if driver tx1 or tx2 is switched on
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 57 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.3.8 cwgspreg register defines the conductance of the p-driver output during periods of no modulation. 9.3.3.9 modgspreg register defines the conductance of the p-driver output during modulation. 9.3.3.10 tmodereg and tprescalerreg registers these registers define the timer settings. remark: the tprescaler setting higher 4 bits are in the tmodereg register and the lower 8 bits are in the tprescalerreg register. table 101. cwgspreg register (address 28h); reset value: 20h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved cwgsp[5:0] access - r/w table 102. cwgspreg regi ster bit descriptions bit symbol description 7 to 6 reserved reserved for future use 5 to 0 cwgsp[5:0] defines the conductance of the p-driver output which can be used to regulate the output power and subs equently current consumption and operating distance remark: the conductance value is binary weighted during soft power-down mode the highest bit is forced to logic 1 table 103. modgspreg register (address 29h); reset value: 20h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved modgsp[5:0] access - r/w table 104. modgspreg register bit descriptions bit symbol description 7 to 6 reserved reserved for future use 5 to 0 modgsp[5:0] defines the conductance of the p-driver out put during modulation which can be used to regulate the modulation index remark: the conductance value is binary weighted during soft power-down mode the highest bit is forced to logic 1 if the txaskreg register ?s force100ask bit is set to logic 1 the value of modgsp has no effect table 105. tmodereg register (address 2ah); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol tauto tgated[1:0] taut orestart tprescaler_hi[3:0] access r/w r/w r/w r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 58 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.3.11 treloadreg register defines the 16-bit timer reload value. table 106. tmodereg register bit descriptions bit symbol value description 7 tauto 1 timer starts automatically at the end of the transmission in all communication modes at all speeds if the rxmodereg register?s rxmultiple bit is not set, the timer stops immediately after receiving the 5th bit (1startbit, 4 databits) if the rxmultiple bit is set to logic 1 the timer never stops, in which case the timer can be stopped by setting the controlreg register?s tstopnow bit to logic 1 0 indicates that the timer is not influenced by the protocol 6 to 5 tgated[1:0] internal timer is running in gated mode remark: in gated mode, the status1reg register?s trunning bit is logic 1 when the timer is enabled by the tmodereg register bits this bit does not influence the gating signal 00 non-gated mode 01 gated by pin mfin 10 gated by pin aux1 11 - 4 tautorestart 1 timer automatically restarts its count-down from the 16-bit timer reload value instead of counting down to zero 0 timer decrements to 0 and the comirqreg register?s timerirq bit is set to logic 1 3 to 0 tprescaler_hi [3:0] - defines the higher 4 bits of the tprescaler value the following formula is used to calculate f timer : where 13.56 is the carrier frequency in mhz; for detailed description, see section 8.5 ? timer unit ? table 107. tprescalerreg register (address 2bh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol tprescaler_lo[7:0] access r/w table 108. tprescalerreg register bit descriptions bit symbol description 7 to 0 tprescaler_lo[7:0] defines the lo wer 8 bits of the tprescaler value the following formula is used to calculate f timer : where 13.56 is the carrier frequency in mhz; for detailed description, see section 8.5 ? timer unit ? f timer 13.56 10 6 tprescaler 1 + -------------------------------------- - = f timer 13.56 10 6 tprescaler 1 + -------------------------------------- - =
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 59 of 96 nxp semiconductors mfrc522 contactless reader ic remark: the reload value bits are contained in two 8-bit registers. 9.3.3.12 tcountervalreg register contains the timer value. remark: the timer value bits are contained in two 8-bit registers. table 109. treloadreg (higher bits) register (a ddress 2ch); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol treloadval_hi[7:0] access r/w table 110. treloadreg register higher bit descriptions bit symbol description 7 to 0 treloadval_hi [7:0] defines the higher 8 bits of the 16-bit timer reload value on a start event, the timer loads the timer reload value changing this register affects the timer only at the next start event table 111. treloadreg (lower bits) register (address 2dh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol treloadval_lo[7:0] access r/w table 112. treloadreg register lower bit descriptions bit symbol description 7 to 0 treloadval_lo [7:0] defines the lower 8 bits of the 16-bit timer reload value on a start event, the timer lo ads the timer reload value changing this register affects the ti mer only at the next start event table 113. tcountervalreg (higher bits) register (address 2eh); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol tcounterval_hi[7:0] access r table 114. tcountervalreg register higher bit descriptions bit symbol description 7 to 0 tcounterval_hi [7:0] timer value higher 8 bits table 115. tcountervalreg (lower bits) regi ster (address 2fh); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol tcounterval_lo[7:0] access r
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 60 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.4 page 3: test 9.3.4.1 reserved register 30h functionality is reserv ed for future use. 9.3.4.2 testsel1reg register general test signal configuration. 9.3.4.3 testsel2reg register general test signal config uration and prbs control. table 116. tcountervalreg register lower bit descriptions bit symbol description 7 to 0 tcounterval_lo [7:0] timer value lower 8 bits table 117. reserved register (address 30h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 118. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for future use table 119. testsel1reg register (address 31h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved tstbusbitsel[2:0] access - r/w table 120. testsel1reg register bit descriptions bit symbol description 7 to 3 reserved reserved for future use 2 to 0 tstbusbitsel [2:0] selects a test bus signal which is output at pin mfout if analogselaux2[3:0] = ffh in analogtestreg register, test bus signal is also output at pins aux1 or aux2 table 121. testsel2reg register (address 32h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol tstbusflip prbs9 prbs15 testbussel[4:0] access r/w r/w r/w r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 61 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.4.4 testpinenreg register enables the test bus pin output driver. 9.3.4.5 testpinvaluereg register defines the high and low values for the test port d1 to d7 when it is used as i/o. table 122. testsel2reg register bit descriptions bit symbol value description 7 tstbusflip 1 test bus is mapped to the parallel port in the following order: tstbusbit4,tstbusbit3, tstbusbit2, tstbusbit6, tstbusbit5, tstbusbit0; see section 16.1 on page 79 6 prbs9 - starts and enables the prbs9 sequence according to itu-to150 remark: all relevant registers to transmit data must be configured before entering prbs9 mode the data transmission of the defined sequence is started by the transmit command 5 prbs15 - starts and enables the prbs15 sequence according to itu-to150 remark: all relevant registers to transmit data must be configured before entering prbs15 mode the data transmission of the defined sequence is started by the transmit command 4 to 0 testbussel [4:0] - selects the test bus; see section 16.1 ? test signals ? table 123. testpinenreg register (address 33h); reset value: 80h bit allocation bit 7 6 5 4 3 2 1 0 symbol rs232lineen testpinen[5:0] reserved access r/w r/w - table 124. testpinenreg register bit descriptions bit symbol value description 7 rs232lineen 0 serial uart lines mx and dtrq are disabled 6 to 1 testpinen [5:0] - enables the output driver on one of the data pins d1 to d7 which outputs a test signal example: setting bit 1 to logic 1 enables pin d1 output setting bit 5 to logic 1 enables pin d5 output remark: if the spi is used, only pins d1 to d4 can be used. if the serial uart interface is used and the rs232lineen bit is set to logic 1 only pins d1 to d4 can be used. 0 reserved - reserved for future use table 125. testpinvaluereg register (address 34h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol useio testpinvalue[5:0] reserved access r/w r/w -
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 62 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.4.6 testbusreg register shows the status of the internal test bus. 9.3.4.7 autotestreg register controls the digital self-test. table 126. testpinvaluereg register bit descriptions bit symbol value description 7 useio 1 enables the i/o functionality for the test port when one of the serial interfaces is used the input/output behavior is defined by value testpinen[5:0] in the testpinenreg register the value for the output behavior is defined by testpinvalue[5:0] 6 to 1 testpinvalue [5:0] - defines the value of the test port when it is used as i/o and each output must be enabled by testpi nen[5:0] in the testpinenreg register remark: reading the register indicates the status of pins d6 to d1 if the useio bit is set to logic 1. if the useio bit is set to logic 0, the value of the testpinvaluereg register is read back. 0 reserved - reserved for future use table 127. testbusreg register (address 35h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol testbus[7:0] access r table 128. testbusreg register bit descriptions bit symbol description 7 to 0 testbus[7:0] shows the status of the internal test bus the test bus is selected using the testsel2reg register; see section 16.1 on page 79 table 129. autotestreg register (address 36h); reset value: 40h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved amprcv rft selftest[3:0] access - r/w - r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 63 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.4.8 versionreg register shows the mfrc522 software version. 9.3.4.9 analogtestreg register determines the analog output test signal at, and status of, pins aux1 and aux2. table 130. autotestreg register bit descriptions bit symbol value description 7 reserved - reserved for production tests 6 amprcv 1 internal signal processing in the receiver chain is performed non-linearly which increases the operating distance in communication modes at 106 kbd remark: due to non-linearity, the effect of the rxthresholdreg register?s minlevel[3:0] and the colllevel[2:0] values is also non-linear 5 to 4 rft - reserved for production tests 3 to 0 selftest [3:0] - enables the digital self test the self test can also be started by the calccrc command; see section 10.3.1.4 on page 68 the self test is enabled by 1001b remark: for default operation the self test must be disabled by 0000b table 131. versionreg register (address 37h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol version[7:0] access r table 132. versionreg register bit descriptions bit symbol description 7 to 0 version[7:0] indicates current software version of the mfrc522 remark: the current version of the mfrc522 is 90h or 91h table 133. analogtestreg register (address 38h); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol analogselaux1[3:0] analogselaux2[3:0] access r/w r/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 64 of 96 nxp semiconductors mfrc522 contactless reader ic [1] remark: current source output; the use of 1 k pull-down resistor on auxn is recommended. table 134. analogtestreg register bit descriptions bit symbol value description 7 to 4 analogselaux1 [3:0] controls pin aux1 0000 3-state 0001 output of testdac1 (aux1) , output of testdac2 (aux2) [1] 0010 test signal corr1 [1] 0011 reserved 0100 dac: test signal minlevel [1] 0101 dac: test signal adc_i [1] 0110 dac: test signal adc_q [1] 0111 reserved 1000 reserved, test signal for production test [1] 1001 reserved 1010 high 1011 low 1100 txactive: at 106 kbd: high during start bit, data bit, parity and crc at 212 kbd: 424 kbd and 848 kbd: high during data and crc 1101 rxactive: at 106 kbd: high during data bit, parity and crc at 212 kbd: 424 kbd and 848 kbd: high during data and crc 1110 subcarrier detected: 106 kbd: not applicable 212 kbd: 424 kbd and 848 kbd: high during last part of data and crc 1111 test bus bit as defined by the testsel1reg register ?s tstbusbitsel[2:0] bits remark: all test signals are described in section 16.1 on page 79 3 to 0 analogselaux2 [3:0] - controls pin aux2 (see bit descriptions for aux1)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 65 of 96 nxp semiconductors mfrc522 contactless reader ic 9.3.4.10 testdac1reg register defines the test value for testdac1. 9.3.4.11 testdac2reg register defines the test value for testdac2. 9.3.4.12 testadcreg register shows the values of adc i and q channels. 9.3.4.13 reserved register 3ch functionality reserved for production test. table 135. testdac1reg register (address 39h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved testdac1[5:0] access - r/w table 136. testdac1reg register bit descriptions bit symbol description 7 reserved reserved for production tests 6 reserved reserved for future use 5 to 0 testdac1[5:0] defines the test value for testdac1 output of dac1 can be routed to aux1 by setting value analogselaux1[3:0] to 0001b in the analogtestreg register table 137. testdac2reg register (address 3ah); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved testdac2[5:0] access - r/w table 138. testdac2reg register bit descriptions bit symbol description 7 to 6 reserved reserved for future use 5 to 0 testdac2[5:0] defines the test value for testdac2 output of dac2 can be routed to aux2 by setting value analogselaux2[3:0] to 0001b in the analogtestreg register table 139. testadcreg register (address 3b h); reset value: xxh bit allocation bit 7 6 5 4 3 2 1 0 symbol adc_i[3:0] adc_q[3:0] access r r table 140. testadcreg regi ster bit descriptions bit symbol description 7 to 4 adc_i[3:0] adc i channel value 3 to 0 adc_q[3:0] adc q channel value
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 66 of 96 nxp semiconductors mfrc522 contactless reader ic table 141. reserved register (address 3ch); reset value: ffh bit allocation bit 7 6 5 4 3 2 1 0 symbol rft access - table 142. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for production tests table 143. reserved register (address 3dh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol rft access - table 144. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for production tests table 145. reserved register (address 3eh); reset value: 03h bit allocation bit 7 6 5 4 3 2 1 0 symbol rft access - table 146. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for production tests table 147. reserved register (address 3fh); reset value: 00h bit allocation bit 7 6 5 4 3 2 1 0 symbol reserved access - table 148. reserved register bit descriptions bit symbol description 7 to 0 reserved reserved for production tests
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 67 of 96 nxp semiconductors mfrc522 contactless reader ic 10. mfrc522 command set 10.1 general description the mfrc522 operation is determined by a stat e machine capable of performing a set of commands. a command is executed by writing a command code (see table 149 ) to the commandreg register. arguments and/or data necessary to process a command are exchanged via the fifo buffer. 10.2 general behavior ? each command that needs a data bit stream (or data byte stream) as an input immediately processes any data in the fifo buffer. an exception to this rule is the transceive command. using this comma nd, transmission is started with the bitframingreg register?s startsend bit. ? each command that needs a certain number of arguments, starts processing only when it has received the correct number of arguments from the fifo buffer. ? the fifo buffer is not automatically cleared when commands start. this makes it possible to write command arguments and/or the data bytes to the fifo buffer and then start the command. ? each command can be interrupted by the host writing a new command code to the commandreg register, for example, the idle command. 10.3 mfrc522 command overview table 149. command overview command command code action idle 0000 no action, cancels current command execution mem 0001 stores 25 bytes into the internal buffer generate randomid 0010 generates a 10-byte random id number calccrc 0011 activates the crc coproc essor or performs a self test transmit 0100 transmits data from the fifo buffer nocmdchange 0111 no command change, can be used to modify the commandreg register bits without affecting the command, for example, the powerdown bit receive 1000 activates the receiver circuits transceive 1100 transmits data from fifo buffer to antenna and automatically activates the receiver after transmission - 1101 reserved for future use mfauthent 1110 performs the mifare standard authentication as a reader softreset 1111 resets the mfrc522
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 68 of 96 nxp semiconductors mfrc522 contactless reader ic 10.3.1 mfrc522 command descriptions 10.3.1.1 idle places the mfrc522 in idle mode. the idle command also terminates itself. 10.3.1.2 mem transfers 25 bytes from the fifo buffer to the internal buffer. to read out the 25 bytes from the internal buffer the mem command must be started with an empty fifo buffer. in this case, the 25 bytes ar e transferred from the internal buffer to the fifo. during a hard power-down (using pin nrstpd), the 25 bytes in the internal buffer remain unchanged and are only lost if the power supply is removed from the mfrc522. this command automatically terminates wh en finished and the idle command becomes active. 10.3.1.3 generate randomid this command generates a 10-byte random number which is initially stored in the internal buffer. this then overwrites the 10 bytes in the internal 25-byte buffer. this command automatically terminates when finished and the mfrc522 returns to idle mode. 10.3.1.4 calccrc the fifo buffer content is transferred to t he crc coprocessor and the crc calculation is started. the calculation result is stor ed in the crcresultreg register. the crc calculation is not limited to a dedicated number of bytes. the calculation is not stopped when the fifo buffer is empty during the data stream. the next byte written to the fifo buffer is added to the calculation. the crc preset value is controlled by the modereg register?s crcpreset[1:0] bits. the value is loaded in to the crc coprocessor when the command starts. this command must be terminated by wr iting a command to the commandreg register, such as, the idle command. if the autotestreg register?s selftest[3:0] bits are set correctly, the mfrc522 enters self test mode. starting the calccrc command initiates a digital se lf test. the result of the self test is written to the fifo buffer. 10.3.1.5 transmit the fifo buffer content is immediately transm itted after starting this command. before transmitting the fifo buffer content, all relevant registers must be set for data transmission. this command automatically terminates when the fifo buffer is empty. it can be terminated by another command written to the commandreg register. 10.3.1.6 nocmdchange this command does not influence any running command in the commandreg register. it can be used to manipulate any bit except the commandreg register command[3:0] bits, for example, the rcvoff bit or the powerdown bit.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 69 of 96 nxp semiconductors mfrc522 contactless reader ic 10.3.1.7 receive the mfrc522 activates the receiver path and waits for a data stream to be received. the correct settings must be chosen before starting this command. this command automatically terminates when the data stream ends. this is indicated either by the end of frame pattern or by th e length byte depending on the selected frame type and speed. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the receive command will not automatically terminate. it must be termin ated by star ting another command in the commandreg register. 10.3.1.8 transceive this command continuously repeats the transmissi on of data from the fifo buffer and the reception of data from the rf field. the first action is transmit and after transmission the command is changed to receive a data stream. each transmit process must be started by se tting the bitframingreg register?s startsend bit to logic 1. this command must be cleared by writing any command to the commandreg register. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the transceive command never leaves the receive state because this state cannot be cancelled automatically. 10.3.1.9 mfauthent this command manages mifare authenticati on to enable a secure communication to any mifare mini, mifare 1k and mifare 4k card. the following data is written to the fifo buffer before the command can be activated: ? authentication command code (60h, 61h) ? block address ? sector key byte 0 ? sector key byte 1 ? sector key byte 2 ? sector key byte 3 ? sector key byte 4 ? sector key byte 5 ? card serial number byte 0 ? card serial number byte 1 ? card serial number byte 2 ? card serial number byte 3 in total 12 bytes are written to the fifo. remark: when the mfauthent command is active all access to the fifo buffer is blocked. however, if there is access to the fi fo buffer, the errorreg register?s wrerr bit is set.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 70 of 96 nxp semiconductors mfrc522 contactless reader ic this command automatically terminates when the mifare card is authenticated and the status2reg register?s mfcrypto1on bit is set to logic 1. this command does not terminate automatically if the card does not answer, so the timer must be initialized to automatic mode. in this case, in addition to the idleirq bit, the timerirq bit can be used as the termination cr iteria. during authentication processing, the rxirq bit and txirq bit are blocked. the crypto 1on bit is only valid after termination of the mfauthent command, either after processing the protocol or writing idle to the commandreg register. if an error occurs during authe ntication, the errorr eg register?s protocolerr bit is set to logic 1 and the status2reg register?s crypto1on bit is set to logic 0. 10.3.1.10 softreset this command performs a reset of the device. the configuration data of the internal buffer remains unchanged. all registers are set to t he reset values. this command automatically terminates when finished. remark: the serialspeedreg register is reset and therefore the serial data rate is set to 9.6 kbd.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 71 of 96 nxp semiconductors mfrc522 contactless reader ic 11. limiting values 12. recommended operating conditions [1] supply voltages below 3 v reduce the perfo rmance (the achievable operating distance). [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . 13. thermal characteristics table 150. limiting values in accordance with the absolute ma ximum rating system (iec 60134). symbol parameter conditions min max unit v dda analog supply voltage ? 0.5 +4.0 v v ddd digital supply voltage ? 0.5 +4.0 v v dd(pvdd) pvdd supply voltage ? 0.5 +4.0 v v dd(tvdd) tvdd supply voltage ? 0.5 +4.0 v v dd(svdd) svdd supply voltage ? 0.5 +4.0 v v i input voltage all input pins except pins mfin and rx v ss(pvss) ? 0.5 v dd(pvdd) + 0.5 v pin mfin v ss(pvss) ? 0.5 v dd(svdd) + 0.5 v p tot total power dissipation per package; and v ddd in shortcut mode - 200 mw t j junction temperature - 100 c v esd electrostatic discharge voltage hbm; 1500 , 100 pf; jesd22-a114-b - 2000 v mm; 0.75 h, 200 pf; jesd22-a114-a - 200 v table 151. operating conditions symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.53.33.6v v ddd digital supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.53.33.6v v dd(tvdd) tvdd supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.53.33.6v v dd(pvdd) pvdd supply voltage v dd(pvdd) v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [3] 1.61.83.6v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v 1.6 - 3.6 v t amb ambient temperature hvqfn32 ? 25 - +85 c table 152. thermal characteristics symbol parameter conditions package typ unit r th(j-a) thermal resistance from junction to ambient in still air with exposed pin soldered on a 4 layer jedec pcb hvqfn32 40 k/w
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 72 of 96 nxp semiconductors mfrc522 contactless reader ic 14. characteristics table 153. characteristics symbol parameter conditions min typ max unit input characteristics pins ea, i2c and nrstpd i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin mfin i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(svdd) -- v v il low-level input voltage - - 0.3v dd(svdd) v pin sda i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin rx [1] v i input voltage ? 1-v dda +1 v c i input capacitance v dda = 3 v; receiver active; v rx(p-p) = 1v; 1.5v (dc) offset -10- pf r i input resistance v dda = 3 v; receiver active; v rx(p-p) =1v; 1.5v (dc) offset - 350 - input voltage range; see figure 24 v i(p-p)(min) minimum peak-to-peak input voltage manchester encoded; v dda =3v - 100 - mv v i(p-p)(max) maximum peak-to-peak input voltage manchester encoded; v dda =3v -4- v input sensitivity; see figure 24 v mod modulation voltage minimum manchester encoded; v dda =3v; rxgain[2:0] = 111b (48 db) -5- mv pin oscin i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dda -- v v il low-level input voltage - - 0.3v dda v c i input capacitance v dda = 2.8 v; dc = 0.65 v; ac = 1 v (p-p) -2- pf input/output characteristics pins d1, d2, d3, d4, d5, d6 and d7 i li input leakage current ? 1-+1 a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 73 of 96 nxp semiconductors mfrc522 contactless reader ic v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i oh high-level output current v dd(pvdd) =3v - - 4 ma i ol low-level output current v dd(pvdd) =3v - - 4 ma output characteristics pin mfout v oh high-level output voltage v dd(svdd) =3v; i o =4ma v dd(svdd) ? 0.4 -v dd(svdd) v v ol low-level output voltage v dd(svdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(svdd) =3v - - 4 ma i oh high-level output current v dd(svdd) =3v - - 4 ma pin irq v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(pvdd) =3v - - 4 ma i oh high-level output current v dd(pvdd) =3v - - 4 ma pins aux1 and aux2 v oh high-level output voltage v ddd =3v; i o =4ma v ddd ? 0.4 - v ddd v v ol low-level output voltage v ddd =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v ddd =3v - - 4 ma i oh high-level output current v ddd =3v - - 4 ma pins tx1 and tx2 v oh high-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.15 -- v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.4 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.24 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.64 -- v table 153. characteristics ?continued symbol parameter conditions min typ max unit
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 74 of 96 nxp semiconductors mfrc522 contactless reader ic [1] the voltage on pin rx is clamped by internal diodes to pins avss and avdd. v ol low-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.15 v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh --0.4v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.24 v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh - - 0.64 v current consumption i pd power-down current v dda =v ddd = v dd(tvdd) = v dd(pvdd) =3v hard power-down; pin nrstpd set low [2] --5 a soft power-down; rf level detector on [2] --10 a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda =3v; commandreg register?s bit rcvoff = 0 -710ma pin avdd; receiver switched off; v dda =3v; commandreg register?s bit rcvoff = 1 -35ma i dd(pvdd) pvdd supply current pin pvdd [3] --40ma i dd(tvdd) tvdd supply current pin tvdd; continuous wave [4] [5] [6] -60100ma i dd(svdd) svdd supply current pin svdd [7] --4ma clock frequency f clk clock frequency - 27.12 - mhz clk clock duty cycle 40 50 60 % t jit jitter time rms - - 10 ps crystal oscillator v oh high-level output voltage pin oscout - 1.1 - v v ol low-level output voltage pin oscout - 0.2 - v c i input capacitance pin oscout - 2 - pf pin oscin - 2 - pf typical input requirements f xtal crystal frequency - 27.12 - mhz esr equivalent series resistance - - 100 c l load capacitance - 10 - pf p xtal crystal power dissipation - 50 100 mw table 153. characteristics ?continued symbol parameter conditions min typ max unit
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 75 of 96 nxp semiconductors mfrc522 contactless reader ic [2] i pd is the total current for all supplies. [3] i dd(pvdd) depends on the overall load at the digital pins. [4] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [5] during typical circuit operation, the overall current is below 100 ma. [6] typical value using a complementary driv er configuration and an antenna matched to 40 between pins tx1 and tx2 at 13.56 mhz. [7] i dd(svdd) depends on the load at pin mfout. 14.1 timing characteristics fig 24. pin rx input voltage range 001aak01 2 vmid 0 v ? 1 v v dda + 1 v v mod v i(p-p)(max) v i(p-p)(min) 13.56 mhz carrier table 154. spi timing characteristics symbol parameter conditions min typ max unit t wl pulse width low line sck 50 - - ns t wh pulse width high line sck 50 - - ns t h(sckh-d) sck high to data input hold time sck to changing mosi 25 - - ns t su(d-sckh) data input to sck high set-up time changing mosi to sck 25 - - ns t h(sckl-q) sck low to data output hold time sck to changing miso - - 25 ns t (sckl-nssh) sck low to nss high time 0- - ns t nhnl nss high before communication 50 - - ns
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 76 of 96 nxp semiconductors mfrc522 contactless reader ic table 155. i 2 c-bus timing in fast mode symbol parameter conditions fast mode high-speed mode unit min max min max f scl scl clock frequency 0 400 0 3400 khz t hd;sta hold time (repeated) start condition after this period, the first clock pulse is generated 600 - 160 - ns t su;sta set-up time for a repeated start condition 600 - 160 - ns t su;sto set-up time for stop condition 600 - 160 - ns t low low period of the scl clock 1300 - 160 - ns t high high period of the scl clock 600 - 60 - ns t hd;dat data hold time 0 900 0 70 ns t su;dat data set-up time 100 - 10 - ns t r rise time scl signal 20 300 10 40 ns t f fall time scl signal 20 300 10 40 ns t r rise time sda and scl signals 20 300 10 80 ns t f fall time sda and scl signals 20 300 10 80 ns t buf bus free time between a stop and start condition 1.3 - 1.3 - s remark: the signal nss must be low to be able to send several bytes in one data stream. to send more than one data stream nss must be set high between the data streams. fig 25. timing diagram for spi 001aaj63 4 t sckl t sckh t sckl t dxsh t shdx t dxsh t sldx t slnh mosi sck miso msb msb lsb lsb nss
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 77 of 96 nxp semiconductors mfrc522 contactless reader ic fig 26. timing for fast and standard mode devices on the i 2 c-bus 001aaj63 5 sda t f scl t low t f t sp t r t hd;sta t hd;dat t hd;sta t r t high t su;dat ssrps t su;sta t su;sto t buf
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 78 of 96 nxp semiconductors mfrc522 contactless reader ic 15. application information a typical application diagram using a complementary antenna connection to the mfrc522 is shown in figure 27 . the antenna tuning and rf part matching is described in the application note ref. 1 and ref. 2 . fig 27. typical application diagram 001aaj636 dvdd avdd supply micro- processor host interface tvdd oscin oscout 27.12 mhz rx vmid antenna tx1 tvss tx2 pvdd 2 31512 21 22 17 16 11 10, 14 13 4 5 6 23 18 pvss nrstpd irq avss dvss mfrc522 r1 l0 c1 ra ra c1 l0 r2 c0 c0 c2 c2 lant c rx c vmid
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 79 of 96 nxp semiconductors mfrc522 contactless reader ic 16. test information 16.1 test signals 16.1.1 self test the mfrc522 has the capability to perform a digital self test. the self test is started by using the following procedure: 1. perform a soft reset. 2. clear the internal buffer by writing 25 bytes of 00h and implement the config command. 3. enable the self test by writing 09h to the autotestreg register. 4. write 00h to the fifo buffer. 5. start the self test with the calccrc command. 6. the self test is initiated. 7. when the self test has completed, the fi fo buffer contains the following 64 bytes: fifo buffer byte values for version 90h: 00h, 87h, 98h, 0fh, 49h, ffh, 07h, 19h bfh, 22h, 30h, 49h, 59h, 63h, adh, cah 7fh, e3h, 4eh, 03h, 5ch, 4eh, 49h, 50h 47h, 9ah, 37h, 61h, e7h, e2h, c6h, 2eh 75h, 5ah, edh, 04h, 3dh, 02h, 4bh, 78h 32h, ffh, 58h, 3bh, 7ch, e9h, 00h, 94h b4h, 4ah, 59h, 5bh, fdh, u9h, 29h, dfh 35h, 96h, 98h, 9eh, 4fh, 30h, 32h, 8dh fifo buffer byte values for version 91h: 00h, c6h, 37h, d5h, 32h, b7h, 57h, 5ch c2h, d8h, 7ch, 4dh, d9h, 70h, c7h, 73h 10h, e6h, d2h, aah, 5eh, a1h, 3eh, 5ah 14h, afh, 30h, 61h, c9h, 70h, dbh, 2eh 64h, 22h, 72h, b5h, bdh, 65h, f4h, ech 22h, bch, d3h, 72h, 35h, cdh, aah, 41h 1fh, a7h, f3h, 53h, 14h, deh, 7eh, 02h d9h, 0fh, b5h, 5eh, 25h, 1dh, 29h, 79h 16.1.2 test bus the test bus is used for production tests. the following configuration can be used to improve the design of a system using the mfrc5 22. the test bus allo ws internal signals to be routed to the digital interface. the test bus comprises two sets of test signals which are selected using their subaddress specified in the testsel2reg register?s testbussel[4:0] bits. the test signals and thei r related digital output pins are described in table 156 and table 157 .
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 80 of 96 nxp semiconductors mfrc522 contactless reader ic 16.1.3 test signals on pins aux1 or aux2 the mfrc522 allows the user to select internal signals for measurement on pins aux1 or aux2. these measurements can be helpful during the design-in phase to optimize the design or used for test purposes. table 158 shows the signals that can be switched to pin aux1 or aux2 by setting analogselaux1[3:0] or an alogselaux2[3:0] in the analogtestreg register. remark: the dac has a current output, ther efore it is recommended that a 1 k pull-down resistor is connected to pin aux1 or aux2. table 156. test bus signals: testbussel[4:0] = 07h pins internal signal name description d6 s_data received data stream d5 s_coll bit-collision de tected (106 kbd only) d4 s_valid s_data and s_coll signals are valid d3 s_over receiver has de tected a stop condition d2 rcv_reset receiver is reset d1 - reserved table 157. test bus signals: testbussel[4:0] = 0dh pins internal test signal name description d6 clkstable oscillator output signal d5 clk27/8 oscillator output signal divided by 8 d4 to d3 - reserved d2 clk27 oscillator output signal d1 - reserved table 158. test signal descriptions analogselaux1[3:0] or analogselaux2[3:0] value signal on pin aux1 or pin aux2 0000 3-state 0001 dac: register testdac1 or testdac2 0010 dac: test signal corr1 0011 reserved 0100 dac: test signal minlevel 0101 dac: test signal adc_i 0110 dac: test signal adc_q 0111 to 1001 reserved 1010 high 1011 low 1100 txactive
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 81 of 96 nxp semiconductors mfrc522 contactless reader ic 16.1.3.1 example: output test signals testdac1 and testdac2 the analogtestreg register is set to 11h. the output on pin aux1 has the test signal testdac1 and the output on pin aux2 has th e test signal testdac2. the signal values of testdac1 and testdac2 are controlled by the testdac1reg and testdac2reg registers. figure 28 shows test signal testdac1 on pin au x1 and testdac2 on pin aux2 when the testdac1reg register is programmed with a slope defined by values 00h to 3fh and the testdac2reg register is programmed with a rectangular signal defined by values 00h and 3fh. 16.1.3.2 example: output test signals corr1 and minlevel figure 29 shows test signals corr1 and minlevel on pins aux1 and aux2, respectively. the analogtestreg register is set to 24h. 1101 rxactive 1110 subcarrier detected 1111 tstbusbit table 158. test signal descriptions ?continued analogselaux1[3:0] or analogselaux2[3:0] value signal on pin aux1 or pin aux2 (1) testdac1 (500 mv/div) on pin aux1. (2) testdac2 (500 mv/div) on pin aux2. fig 28. output test signals testdac1 on pin aux1 and testdac2 on pin aux2 100 ms/div 001aak597 (1) (2)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 82 of 96 nxp semiconductors mfrc522 contactless reader ic 16.1.3.3 example: output test signals adc channel i and adc channel q figure 30 shows the channel behavior test signals adc_i and adc_q on pins aux1 and aux2, respectively. the analogtestreg register is set to 56h. (1) minlevel (1 v/div) on pin aux2. (2) corr1 (1 v/div) on pin aux1. (3) rf field. fig 29. output test signals corr1 on pin aux1 and minlevel on pin aux2 10 s/div 001aak598 (1) (2) (3) (1) adc_i (1 v/div) on pin aux1. (2) adc_q (500 mv/div) on pin aux2. (3) rf field. fig 30. output adc channel i on pi n aux1 and adc channel q on pin aux2 5 s/div 001aak599 (1) (2) (3)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 83 of 96 nxp semiconductors mfrc522 contactless reader ic 16.1.3.4 example: output test signals rxactive and txactive figure 31 shows the rxactive and txactive test signals relating to rf communication. the analogtestreg register is set to cdh. ? at 106 kbd, rxactive is high during data bits, parity and crc reception. start bits are not included ? at 106 kbd, txactive is high during star t bits, data bits, parity and crc transmission ? at 212 kbd, 424 kbd and 848 kbd, rxactive is high during data bits and crc reception. start bits are not included ? at 212 kbd, 424 kbd and 848 kbd, txacti ve is high during data bits and crc transmission (1) rxactive (2 v/div) on pin aux1. (2) txactive (2 v/div) on pin aux2. (3) rf field. fig 31. output rxactive on pin aux1 and txactive on pin aux2 10 s/div 001aak600 (1) (2) (3)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 84 of 96 nxp semiconductors mfrc522 contactless reader ic 16.1.3.5 example: output test signal rx data stream figure 32 shows the data stream that is curr ently being received. the testsel2reg register?s testbussel[4:0] bits are set to 07h to enable test bus signals on pins d1 to d6; see section 16.1.2 on page 79 . the testsel1reg register?s tstbusbitsel[2:0] bits are set 06h (pin d6 = s_data) and analogtestreg regist er is set to ffh (tstbusbit) which outputs the received data stream on pins aux1 and aux2. 16.1.3.6 prbs the pseudo-random binary sequences prbs9 and prbs15 are based on itu-to150 and are defined with the testsel2reg register. transmission of either data stream is started by the transmit command. the pream ble/sync byte/start bit/parity bit are automatically generated depending on the mode selected. remark: all relevant registers for transmitting da ta must be configured in accordance with itu-to150 before selecting prbs transmission. (1) s_data (received data stream) (2 v/div). (2) rf field. fig 32. received data stream on pins aux1 and aux2 20 s/div 001aak601 (1) (2)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 85 of 96 nxp semiconductors mfrc522 contactless reader ic 17. package outline fig 33. package outline sot617-1 (hvqfn32) 0.5 1 a 1 e h b unit y e 0.2 c references outline version european projection issue date iec jedec jeita mm 5.1 4.9 d h 3.25 2.95 y 1 5.1 4.9 3.25 2.95 e 1 3.5 e 2 3.5 0.30 0.18 0.05 0.00 0.05 0.1 dimensions (mm are the original dimensions) sot617-1 mo-220 - - - - - - 0.5 0.3 l 0.1 v 0.05 w 0 2.5 5 mm scale sot617 -1 h vqfn32: plastic thermal enhanced very thin quad flat package; no leads; 3 2 terminals; body 5 x 5 x 0.85 mm a (1) max. a a 1 c detail x y y 1 c e l e h d h e e 1 b 916 32 25 24 17 8 1 x d e c b a e 2 terminal 1 index area terminal 1 index area 01-08-08 02-10-18 1/2 e 1/2 e a c c b v m w m e (1) note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. d (1)
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 86 of 96 nxp semiconductors mfrc522 contactless reader ic detailed package information can be found at: http://www.nxp.com/package/sot617-1.html. 18. handling information moisture sensitivity level (msl) evaluation has been performed according to snw-fq-225b rev.04/07/07 (jedec j-std-020c) . msl for this package is level 1 which means 260 c convection reflow temperature. dry pack is not required. unlimited out-of-pack floor life at maximum ambient 30 c/85 % rh. 19. packing information fig 34. packing information 1 tray 001aaj74 0 strap 46 mm from corner tray chamfer pin 1 chamfer pin 1 printed piano box esd warning preprinted barcode label (permanent) barcode label (peel-off) qa seal hyatt patent preprinted the straps around the package of stacked trays inside the piano-box have sufficient pre-tension to avoid loosening of the trays. in the traystack (2 trays) only one tray type* allowed *one supplier and one revision number.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 87 of 96 nxp semiconductors mfrc522 contactless reader ic 20. abbreviations 21. references [1] application note ? mfrc52x reader ic family directly matched antenna design [2] application note ? mifare (iso/iec 14443 a) 13.56 mhz rfid proximity antennas table 159. abbreviations acronym description adc analog-to-digital converter bpsk binary phase shift keying crc cyclic redundancy check cw continuous wave dac digital-to-analog converter hbm human body model i 2 c inter-integrated circuit lsb least significant bit miso master in slave out mm machine model mosi master out slave in msb most significant bit nrz not return to zero nss not slave select pll phase-locked loop prbs pseudo-random bit sequence rx receiver sof start of frame spi serial peripheral interface tx transmitter uart universal asynchronous receiver transmitter
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 88 of 96 nxp semiconductors mfrc522 contactless reader ic 22. revision history table 160. revision history document id release date data sheet status change notice supersedes mfrc522_34 20100305 product data sheet mfrc522_33 modifications: ? section 8.5 ? timer unit ? : information added ? table 106 ? tmodereg register bit descriptions ? : bit 7 updated ? table 154 ? spi timing characteristics ? : row added mfrc522_33 20091026 product data sheet - 112132 112132 may 2007 product data sheet 200705005f 112131 112131 september 2006 product data sheet - 112130 112130 december 2005 product data sheet public - 112121 112121 september 2005 product data sheet - 112120 112120 july 2005 preliminary data sheet - 112110 112110 july 2005 objective data sheet - 112104 112104 november 2004 objective data sheet - 112103 112103 october 2004 objective data sheet - -
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 89 of 96 nxp semiconductors mfrc522 contactless reader ic 23. legal information 23.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 23.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer , unless nxp semiconductors and customer have explicitly agreed otherwis e in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet. 23.3 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interrupt ion, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on a weakness or default in the customer application/use or the application/use of customer?s third party customer(s) (hereinafter both referred to as ?application?). it is customer?s sole responsibility to check whether the nxp semiconductors product is suitable and fit for the application planned. customer has to do all necessary testing for the application in order to avoid a default of the application and the product. nxp semiconducto rs does not accept any liability in this respect. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the recommended operating conditions section (if present) or the characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. terms and conditions of commercial sale ? nxp semiconductors products are sold subject to the gener al terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms , unless otherwise agreed in a valid written individual agreement. in case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. nxp semiconductors hereby expressly objects to applying the customer?s general terms and conditions with regard to the purchase of nxp semiconducto rs products by customer. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. quick reference data ? the quick reference data is an extract of the product data given in the limiting values and characteristics sections of this document, and as such is not comp lete, exhaustive or legally binding. non-automotive qualified products ? unless this data sheet expressly states that this specific nxp semicond uctors product is au tomotive qualified, the product is not suitable for automotive use. it is neither qualified nor tested in accordance with automotive testing or application requirements. nxp semiconductors accepts no liability for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this docu ment contains the product specification.
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 90 of 96 nxp semiconductors mfrc522 contactless reader ic in the event that customer uses t he product for design-in and use in automotive applications to automotive s pecifications and standards, customer (a) shall use the product without nxp semiconductors? warranty of the product for such automotive applicat ions, use and specifications, and (b) whenever customer uses the product for automotive applications beyond nxp semiconductors? specifications such use shall be solely at customer?s own risk, and (c) customer fully in demnifies nxp semi conductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive appl ications beyond nxp semiconductors? standard warranty and nxp semicond uctors? product specifications. 23.4 licenses 23.5 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. mifare ? is a trademark of nxp b.v. 24. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com purchase of nxp ics with iso/iec 14443 type b functionality this nxp semiconductors ic is iso/iec 14443 type b software enabled and is licensed under innovatron?s contactless card patents license for iso/iec 14443 b. the license includes the right to use the ic in systems and/or end-user equipment. ratp/innovatron technology
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 91 of 96 continued >> nxp semiconductors mfrc522 contactless reader ic 25. tables table 1. quick reference data . . . . . . . . . . . . . . . . . . . . .2 table 2. ordering information . . . . . . . . . . . . . . . . . . . . .3 table 3. pin description . . . . . . . . . . . . . . . . . . . . . . . . . .5 table 4. communication overview for iso/iec 14443 a/mifare reader/writer . . . . . .7 table 5. connection protocol for detecting different interface types . . . . . . . . . . . . . . . . . . . . . . . . . .8 table 6. mosi and miso byte order . . . . . . . . . . . . . . . .9 table 7. mosi and miso byte order . . . . . . . . . . . . . . .10 table 8. address byte 0 register; address mosi . . . . . .10 table 9. br_t0 and br_t1 settings . . . . . . . . . . . . . . . 11 table 10. selectable uart transf er speeds . . . . . . . . . . 11 table 11. uart framing . . . . . . . . . . . . . . . . . . . . . . . . .12 table 12. read data byte order . . . . . . . . . . . . . . . . . . . .12 table 13. write data byte order . . . . . . . . . . . . . . . . . . . .13 table 14. address byte 0 register; address mosi . . . . . .15 table 15. register and bit sett ings controlling the signal on pin tx1 . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 table 16. register and bit sett ings controlling the signal on pin tx2 . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 table 17. crc coprocessor parame ters . . . . . . . . . . . . .27 table 18. interrupt sources . . . . . . . . . . . . . . . . . . . . . . .29 table 19. behavior of register bits and their designation .33 table 20. mfrc522 register overview . . . . . . . . . . . . . .34 table 21. reserved register (address 00h); reset value: 00h bit allocation . . . . . . . . . . . . . . . . . . . . . . .36 table 22. reserved register bit descriptions . . . . . . . . . .36 table 23. commandreg register (address 01h); reset value: 20h bit allocation . . . . . . . . . . . . .36 table 24. commandreg register bit descriptions . . . . . .36 table 25. comienreg re gister (address 02h); reset value: 80h bit allocation . . . . . . . . . . . . .36 table 26. comienreg register bit descriptions . . . . . . . .37 table 27. divienreg register (address 03h); reset value: 00h bit allocation . . . . . . . . . . . . .37 table 28. divienreg register bit descriptions . . . . . . . . .37 table 29. comirqreg re gister (address 04h); reset value: 14h bit allocation . . . . . . . . . . . . .37 table 30. comirqreg register bit descriptions . . . . . . . .38 table 31. divirqreg r egister (address 05h); reset value: x0h bit allocation . . . . . . . . . . . . .38 table 32. divirqreg register bit descriptions . . . . . . . . . .38 table 33. errorreg register (address 06h); reset value: 00h bit allocation . . . . . . . . . . . . .39 table 34. errorreg register bit descriptions . . . . . . . . . .39 table 35. status1reg register (address 07h); reset value: 21h bit allocation . . . . . . . . . . . . .40 table 36. status1reg register bit descriptions . . . . . . . .40 table 37. status2reg register (address 08h); reset value: 00h bit allocation . . . . . . . . . . . . . 41 table 38. status2reg register bit descriptions . . . . . . . . 41 table 39. fifodatareg register (address 09h); reset value: xxh bit allocation . . . . . . . . . . . . . 42 table 40. fifodatareg register bit descriptions . . . . . . 42 table 41. fifolevelreg register (address 0ah); reset value: 00h bit allocation . . . . . . . . . . . . . 42 table 42. fifolevelreg register bit descriptions . . . . . . 42 table 43. waterlevelreg register (address 0bh); reset value: 08h bit allocation . . . . . . . . . . . . . 42 table 44. waterlevelreg register bit descriptions . . . . . 43 table 45. controlreg register (address 0ch); reset value: 10h bit allocation . . . . . . . . . . . . . 43 table 46. controlreg register bit descriptions . . . . . . . . 43 table 47. bitframingreg register (address 0dh); reset value: 00h bit allocation . . . . . . . . . . . . . 44 table 48. bitframingreg register bit descriptions . . . . . 44 table 49. collreg register (address 0eh); reset value: xxh bit allocation . . . . . . . . . . . . . 44 table 50. collreg register bit descriptions . . . . . . . . . . . 44 table 51. reserved register (address 0fh); reset value: 00h bit allocation . . . . . . . . . . . . . 45 table 52. reserved register bit descriptions . . . . . . . . . . 45 table 53. reserved register (address 10h); reset value: 00h bit allocation . . . . . . . . . . . . . 45 table 54. reserved register bit descriptions . . . . . . . . . . 45 table 55. modereg register (address 11h); reset value: 3fh bit allocation . . . . . . . . . . . . . 46 table 56. modereg register bit descriptions . . . . . . . . . 46 table 57. txmodereg register (address 12h); reset value: 00h bit allocation . . . . . . . . . . . . . 46 table 58. txmodereg register bit descriptions . . . . . . . 47 table 59. rxmodereg register (address 13h); reset value: 00h bit allocation . . . . . . . . . . . . . 47 table 60. rxmodereg register bi t descriptions . . . . . . . 47 table 61. txcontrolreg register (address 14h); reset value: 80h bit allocation . . . . . . . . . . . . . 48 table 62. txcontrolreg register bit descriptions . . . . . . 48 table 63. txaskreg regi ster (address 15h); reset value: 00h bit allocation . . . . . . . . . . . . . 49 table 64. txaskreg register bit descriptions . . . . . . . . 49 table 65. txselreg register (address 16h); reset value: 10h bit allocation . . . . . . . . . . . . . 49 table 66. txselreg register bit descriptions . . . . . . . . . 49 table 67. rxselreg register (address 17h); reset value: 84h bit allocation . . . . . . . . . . . . . 50 table 68. rxselreg register bit descriptions . . . . . . . . . 50
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 92 of 96 continued >> nxp semiconductors mfrc522 contactless reader ic table 69. rxthresholdreg register (address 18h); reset value: 84h bit allocation . . . . . . . . . . . . .51 table 70. rxthresholdreg register bit descriptions . . . .51 table 71. demodreg register (address 19h); reset value: 4dh bit allocation . . . . . . . . . . . . .51 table 72. demodreg register bit descriptions . . . . . . . . .51 table 73. reserved register (address 1ah); reset value: 00h bit allocation . . . . . . . . . . . . .52 table 74. reserved register bit descriptions . . . . . . . . . .52 table 75. reserved register (address 1bh); reset value: 00h bit allocation . . . . . . . . . . . . .52 table 76. reserved register bit descriptions . . . . . . . . . .52 table 77. mftxreg register (address 1ch); reset value: 62h bit allocation . . . . . . . . . . . . .52 table 78. mftxreg register bit de scriptions . . . . . . . . . .52 table 79. mfrxreg register (address 1dh); reset value: 00h bit allocation . . . . . . . . . . . . .53 table 80. mfrxreg register bit descriptions . . . . . . . . . .53 table 81. reserved register (address 1eh); reset value: 00h bit allocation . . . . . . . . . . . . .53 table 82. reserved register bit descriptions . . . . . . . . . .53 table 83. serialspeedreg register (address 1fh); reset value: ebh bit allocati on . . . . . . . . . . . . .53 table 84. serialspeedreg register bit descriptions . . . . .53 table 85. reserved register (address 20h); reset value: 00h bit allocation . . . . . . . . . . . . . . . . . . . . . . .54 table 86. reserved register bit descriptions . . . . . . . . . .54 table 87. crcresultreg (higher bits) register (address 21h); reset value: ffh bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 88. crcresultreg register higher bit descriptions 54 table 89. crcresultreg (lower bits) register (address 22h); reset value: ffh bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 table 90. crcresultreg register lower bit descriptions .54 table 91. reserved register (address 23h); reset value: 88h bit allocation . . . . . . . . . . . . .55 table 92. reserved register bit descriptions . . . . . . . . . .55 table 93. modwidthreg register (address 24h); reset value: 26h bit allocation . . . . . . . . . . . . .55 table 94. modwidthreg register bit descriptions . . . . . .55 table 95. reserved register (address 25h); reset value: 87h bit allocation . . . . . . . . . . . . .55 table 96. reserved register bit descriptions . . . . . . . . . .55 table 97. rfcfgreg register (address 26h); reset value: 48h bit allocation . . . . . . . . . . . . .56 table 98. rfcfgreg register bit descriptions . . . . . . . . .56 table 99. gsnreg register (address 27h); reset value: 88h bit allocation . . . . . . . . . . . . .56 table 100. gsnreg register bit descriptions . . . . . . . . . .56 table 101. cwgspreg register (address 28h); reset value: 20h bit allocation . . . . . . . . . . . . . 57 table 102. cwgspreg register bit descriptions . . . . . . . 57 table 103. modgspreg register (address 29h); reset value: 20h bit allocation . . . . . . . . . . . . . 57 table 104. modgspreg register bit descriptions . . . . . . . 57 table 105. tmodereg register (address 2ah); reset value: 00h bit allocation . . . . . . . . . . . . . 57 table 106. tmodereg register bit descriptions . . . . . . . . 58 table 107. tprescalerreg register (address 2bh); reset value: 00h bit allocation . . . . . . . . . . . . . 58 table 108. tprescalerreg register bit descriptions . . . . . 58 table 109. treloadreg (higher bits) register (address 2ch); reset value: 00h bit allocation . 59 table 110. treloadreg register higher bit descriptions . 59 table 111. treloadreg (lower bits) register (address 2dh); reset value: 00h bit allocation . 59 table 112. treloadreg register lower bit descriptions . . 59 table 113. tcountervalreg (higher bits) register (address 2eh); reset value: xxh bit allocation . 59 table 114. tcountervalreg register higher bit descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 115. tcountervalreg (lower bits) register (address 2fh); reset value: xxh bit allocation . 59 table 116. tcountervalreg register lower bit descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 117. reserved register (address 30h); reset value: 00h bit allocation . . . . . . . . . . . . . 60 table 118. reserved register bi t descriptions . . . . . . . . . 60 table 119. testsel1reg register (address 31h); reset value: 00h bit allocation . . . . . . . . . . . . . 60 table 120. testsel1reg register bit descriptions . . . . . . . 60 table 121. testsel2reg register (address 32h); reset value: 00h bit allocation . . . . . . . . . . . . . 60 table 122. testsel2reg register bit descriptions . . . . . . . 61 table 123. testpinenreg register (address 33h); reset value: 80h bit allocation . . . . . . . . . . . . . 61 table 124. testpinenreg register bit descriptions . . . . . 61 table 125. testpinvaluereg register (address 34h); reset value: 00h bit allocation . . . . . . . . . . . . . 61 table 126. testpinvaluereg register bit descriptions . . . 62 table 127. testbusreg register (address 35h); reset value: xxh bit allocation . . . . . . . . . . . . . 62 table 128. testbusreg register bit descriptions . . . . . . . 62 table 129. autotestreg register (address 36h); reset value: 40h bit allocation . . . . . . . . . . . . . 62 table 130. autotestreg register bit descriptions . . . . . . . 63 table 131. versionreg register (address 37h); reset value: xxh bit allocation . . . . . . . . . . . . . 63 table 132. versionreg register bit descriptions . . . . . . . . 63 table 133. analogtestreg register (address 38h); reset value: 00h bit allocation . . . . . . . . . . . . . 63
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 93 of 96 nxp semiconductors mfrc522 contactless reader ic table 134. analogtestreg register bit descriptions . . . . .64 table 135. testdac1reg register (address 39h); reset value: xxh bit allocation . . . . . . . . . . . . .65 table 136. testdac1reg register bit descriptions . . . . . .65 table 137. testdac2reg register (address 3ah); reset value: xxh bit allocation . . . . . . . . . . . . .65 table 138. testdac2reg register bit descriptions . . . . . .65 table 139. testadcreg register (address 3bh); reset value: xxh bit allocation . . . . . . . . . . . . .65 table 140. testadcreg register bit descriptions . . . . . . .65 table 141. reserved register (address 3ch); reset value: ffh bit allocation . . . . . . . . . . . . .66 table 142. reserved register bit descriptions . . . . . . . . . .66 table 143. reserved register (address 3dh); reset value: 00h bit allocation . . . . . . . . . . . . .66 table 144. reserved register bit descriptions . . . . . . . . . .66 table 145. reserved register (address 3eh); reset value: 03h bit allocation . . . . . . . . . . . . .66 table 146. reserved register bit descriptions . . . . . . . . . .66 table 147. reserved register (address 3fh); reset value: 00h bit allocation . . . . . . . . . . . . .66 table 148. reserved register bit descriptions . . . . . . . . . .66 table 149. command overview . . . . . . . . . . . . . . . . . . . .67 table 150. limiting values . . . . . . . . . . . . . . . . . . . . . . . .71 table 151. operating conditions . . . . . . . . . . . . . . . . . . . .71 table 152. thermal characteristics . . . . . . . . . . . . . . . . . .71 table 153. characteristics . . . . . . . . . . . . . . . . . . . . . . . .72 table 154. spi timing characteristics . . . . . . . . . . . . . . . .75 table 155. i 2 c-bus timing in fast mode . . . . . . . . . . . . . .76 table 156. test bus signals: testbussel[4:0] = 07h . . . . .80 table 157. test bus signals: testbussel[4:0] = 0dh . . . . .80 table 158. test signal descriptions . . . . . . . . . . . . . . . . . .80 table 159. abbreviations . . . . . . . . . . . . . . . . . . . . . . . . .87 table 160. revision history . . . . . . . . . . . . . . . . . . . . . . . .88
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 94 of 96 nxp semiconductors mfrc522 contactless reader ic 26. figures fig 1. simplified block diagram of the mfrc522. . . . . . .3 fig 2. detailed block diagram of the mfrc522 . . . . . . . .4 fig 3. pinning configuration hvqfn32 (sot617-1) . . . .5 fig 4. mfrc522 read/write mode . . . . . . . . . . . . . . . . .7 fig 5. iso/iec 14443 a/mifare read/write mode communication diagram. . . . . . . . . . . . . . . . . . . . .7 fig 6. data coding and framing according to iso/iec 14443 a . . . . . . . . . . . . . . . . . . . . . . . . . .8 fig 7. spi connection to host . . . . . . . . . . . . . . . . . . . . . .9 fig 8. uart connection to microcontrollers . . . . . . . . .10 fig 9. uart read data timing diagram . . . . . . . . . . . . .12 fig 10. uart write data timing di agram . . . . . . . . . . . . .14 fig 11. i 2 c-bus interface . . . . . . . . . . . . . . . . . . . . . . . . .15 fig 12. bit transfer on the i 2 c-bus . . . . . . . . . . . . . . . . . .16 fig 13. start and stop conditions . . . . . . . . . . . . . . .16 fig 14. acknowledge on the i 2 c-bus . . . . . . . . . . . . . . . .17 fig 15. data transfer on the i 2 c-bus . . . . . . . . . . . . . . . .17 fig 16. first byte following the start procedure . . . . . .18 fig 17. register read and write access . . . . . . . . . . . . . .19 fig 18. i 2 c-bus hs mode protocol switch . . . . . . . . . . . .20 fig 19. i 2 c-bus hs mode protocol frame. . . . . . . . . . . . .21 fig 20. serial data switch for p-driver tx1 and tx2 . . . .25 fig 21. overview of mfin and mfout signal routing . . .26 fig 22. quartz crystal connection . . . . . . . . . . . . . . . . . .31 fig 23. oscillator start-up time . . . . . . . . . . . . . . . . . . . . .32 fig 24. pin rx input voltage range . . . . . . . . . . . . . . . . .75 fig 25. timing diagram for spi . . . . . . . . . . . . . . . . . . . .76 fig 26. timing for fast and standard mode devices on the i 2 c-bus . . . . . . . . . . . . . . . . . . . . . . . . . . .77 fig 27. typical application diagram . . . . . . . . . . . . . . . . .78 fig 28. output test signals testdac1 on pin aux1 and testdac2 on pin aux2 . . . . . . . . . . . . . . . .81 fig 29. output test signals corr1 on pin aux1 and minlevel on pin aux2 . . . . . . . . . . . . . . . . . . . . .82 fig 30. output adc channel i on pin aux1 and adc channel q on pin aux2 . . . . . . . . . . . . . . . . . . . .82 fig 31. output rxactive on pin aux1 and txactive on pin aux2. . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 fig 32. received data stream on pins aux1 and aux2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 fig 33. package outline sot617-1 (hvqfn32) . . . . . . .85 fig 34. packing information 1 tray . . . . . . . . . . . . . . . . . .86
mfrc522_34 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2010. all rights reserved. product data sheet public rev. 3.4 ? 5 march 2010 112134 95 of 96 continued >> nxp semiconductors mfrc522 contactless reader ic 27. contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 general description . . . . . . . . . . . . . . . . . . . . . . 1 3 features and benefits . . . . . . . . . . . . . . . . . . . . 1 4 quick reference data . . . . . . . . . . . . . . . . . . . . . 2 5 ordering information . . . . . . . . . . . . . . . . . . . . . 3 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 7.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5 8 functional description . . . . . . . . . . . . . . . . . . . 7 8.1 digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . 8 8.1.1 automatic microcontroller interface detection. . 8 8.1.2 serial peripheral interface . . . . . . . . . . . . . . . . 9 8.1.2.1 spi read data . . . . . . . . . . . . . . . . . . . . . . . . . . 9 8.1.2.2 spi write data . . . . . . . . . . . . . . . . . . . . . . . . . 10 8.1.2.3 spi address byte . . . . . . . . . . . . . . . . . . . . . . 10 8.1.3 uart interface . . . . . . . . . . . . . . . . . . . . . . . . 10 8.1.3.1 connection to a host. . . . . . . . . . . . . . . . . . . . 10 8.1.3.2 selectable uart transfer speeds . . . . . . . . . 11 8.1.3.3 uart framing . . . . . . . . . . . . . . . . . . . . . . . . . 12 8.1.4 i 2 c-bus interface. . . . . . . . . . . . . . . . . . . . . . . 15 8.1.4.1 data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.1.4.2 start and stop conditions . . . . . . . . . . . . . 16 8.1.4.3 byte format . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.1.4.4 acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 17 8.1.4.5 7-bit addressing . . . . . . . . . . . . . . . . . . . . . . . 18 8.1.4.6 register write access . . . . . . . . . . . . . . . . . . . 18 8.1.4.7 register read access . . . . . . . . . . . . . . . . . . . 19 8.1.4.8 high-speed mode . . . . . . . . . . . . . . . . . . . . . . 20 8.1.4.9 high-speed transfer . . . . . . . . . . . . . . . . . . . . 20 8.1.4.10 serial data transfer format in hs mode . . . . . 20 8.1.4.11 switching between f/s mode and hs mode . 22 8.1.4.12 mfrc522 at lower speed modes . . . . . . . . . . 22 8.2 analog interface and contactless uart . . . . . 23 8.2.1 general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.2.2 tx p-driver . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.2.3 serial data switch . . . . . . . . . . . . . . . . . . . . . . 25 8.2.4 mfin and mfout interface support . . . . . . . 25 8.2.5 crc coprocessor . . . . . . . . . . . . . . . . . . . . . . 27 8.3 fifo buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 8.3.1 accessing the fifo buffer . . . . . . . . . . . . . . . 27 8.3.2 controlling the fifo buffer . . . . . . . . . . . . . . . 27 8.3.3 fifo buffer status information . . . . . . . . . . . . 27 8.4 interrupt request system . . . . . . . . . . . . . . . . . 28 8.4.1 interrupt sources overview . . . . . . . . . . . . . . . 28 8.5 timer unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8.6 power reduction modes . . . . . . . . . . . . . . . . . 31 8.6.1 hard power-down . . . . . . . . . . . . . . . . . . . . . . 31 8.6.2 soft power-down mode . . . . . . . . . . . . . . . . . 31 8.6.3 transmitter power-down mode . . . . . . . . . . . 31 8.7 oscillator circuit . . . . . . . . . . . . . . . . . . . . . . . 31 8.8 reset and oscillator start-up time . . . . . . . . . 32 8.8.1 reset timing requirements . . . . . . . . . . . . . . . 32 8.8.2 oscillator start-up time . . . . . . . . . . . . . . . . . . 32 9 mfrc522 registers . . . . . . . . . . . . . . . . . . . . . 33 9.1 register bit behavior . . . . . . . . . . . . . . . . . . . 33 9.2 register overview . . . . . . . . . . . . . . . . . . . . . 34 9.3 register descriptions . . . . . . . . . . . . . . . . . . . 36 9.3.1 page 0: command and status . . . . . . . . . . . . 36 9.3.1.1 reserved register 00h . . . . . . . . . . . . . . . . . . 36 9.3.1.2 commandreg register. . . . . . . . . . . . . . . . . . 36 9.3.1.3 comienreg register . . . . . . . . . . . . . . . . . . . 36 9.3.1.4 divienreg register. . . . . . . . . . . . . . . . . . . . . 37 9.3.1.5 comirqreg register . . . . . . . . . . . . . . . . . . . . 37 9.3.1.6 divirqreg register . . . . . . . . . . . . . . . . . . . . . 38 9.3.1.7 errorreg register . . . . . . . . . . . . . . . . . . . . . . 39 9.3.1.8 status1reg register . . . . . . . . . . . . . . . . . . . . 40 9.3.1.9 status2reg register . . . . . . . . . . . . . . . . . . . . 41 9.3.1.10 fifodatareg register . . . . . . . . . . . . . . . . . . 42 9.3.1.11 fifolevelreg register. . . . . . . . . . . . . . . . . . 42 9.3.1.12 waterlevelreg register . . . . . . . . . . . . . . . . . 42 9.3.1.13 controlreg register . . . . . . . . . . . . . . . . . . . . 43 9.3.1.14 bitframingreg register . . . . . . . . . . . . . . . . . 44 9.3.1.15 collreg register . . . . . . . . . . . . . . . . . . . . . . . 44 9.3.1.16 reserved register 0fh . . . . . . . . . . . . . . . . . . 45 9.3.2 page 1: communication. . . . . . . . . . . . . . . . . 45 9.3.2.1 reserved register 10h . . . . . . . . . . . . . . . . . . 45 9.3.2.2 modereg register . . . . . . . . . . . . . . . . . . . . . 46 9.3.2.3 txmodereg register . . . . . . . . . . . . . . . . . . . 46 9.3.2.4 rxmodereg register . . . . . . . . . . . . . . . . . . . 47 9.3.2.5 txcontrolreg register . . . . . . . . . . . . . . . . . . 48 9.3.2.6 txaskreg register . . . . . . . . . . . . . . . . . . . . 49 9.3.2.7 txselreg register . . . . . . . . . . . . . . . . . . . . . 49 9.3.2.8 rxselreg register . . . . . . . . . . . . . . . . . . . . . 50 9.3.2.9 rxthresholdreg register . . . . . . . . . . . . . . . . 51 9.3.2.10 demodreg register . . . . . . . . . . . . . . . . . . . . 51 9.3.2.11 reserved register 1ah . . . . . . . . . . . . . . . . . . 51 9.3.2.12 reserved register 1bh . . . . . . . . . . . . . . . . . . 52 9.3.2.13 mftxreg register . . . . . . . . . . . . . . . . . . . . . . 52 9.3.2.14 mfrxreg register . . . . . . . . . . . . . . . . . . . . . . 53 9.3.2.15 reserved register 1eh . . . . . . . . . . . . . . . . . . 53 9.3.2.16 serialspeedreg register . . . . . . . . . . . . . . . . 53 9.3.3 page 2: configuration . . . . . . . . . . . . . . . . . . 54 9.3.3.1 reserved register 20h . . . . . . . . . . . . . . . . . . 54 9.3.3.2 crcresultreg registers . . . . . . . . . . . . . . . . 54 9.3.3.3 reserved register 23h . . . . . . . . . . . . . . . . . . 55
nxp semiconductors mfrc522 contactless reader ic ? nxp b.v. 2010. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 5 march 2010 112134 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 9.3.3.4 modwidthreg register . . . . . . . . . . . . . . . . . . 55 9.3.3.5 reserved register 25h . . . . . . . . . . . . . . . . . . 55 9.3.3.6 rfcfgreg register . . . . . . . . . . . . . . . . . . . . . 56 9.3.3.7 gsnreg register . . . . . . . . . . . . . . . . . . . . . . . 56 9.3.3.8 cwgspreg register . . . . . . . . . . . . . . . . . . . . 57 9.3.3.9 modgspreg register . . . . . . . . . . . . . . . . . . . 57 9.3.3.10 tmodereg and tprescalerreg registers . . . . 57 9.3.3.11 treloadreg register . . . . . . . . . . . . . . . . . . . 58 9.3.3.12 tcountervalreg register . . . . . . . . . . . . . . . . 59 9.3.4 page 3: test . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.3.4.1 reserved register 30h . . . . . . . . . . . . . . . . . . 60 9.3.4.2 testsel1reg register . . . . . . . . . . . . . . . . . . . 60 9.3.4.3 testsel2reg register . . . . . . . . . . . . . . . . . . . 60 9.3.4.4 testpinenreg register . . . . . . . . . . . . . . . . . . 61 9.3.4.5 testpinvaluereg register . . . . . . . . . . . . . . . . 61 9.3.4.6 testbusreg register . . . . . . . . . . . . . . . . . . . . 62 9.3.4.7 autotestreg register . . . . . . . . . . . . . . . . . . . 62 9.3.4.8 versionreg register . . . . . . . . . . . . . . . . . . . . 63 9.3.4.9 analogtestreg register . . . . . . . . . . . . . . . . . 63 9.3.4.10 testdac1reg register . . . . . . . . . . . . . . . . . . 65 9.3.4.11 testdac2reg register . . . . . . . . . . . . . . . . . . 65 9.3.4.12 testadcreg register . . . . . . . . . . . . . . . . . . . 65 9.3.4.13 reserved register 3ch . . . . . . . . . . . . . . . . . . 65 10 mfrc522 command set . . . . . . . . . . . . . . . . . 67 10.1 general description . . . . . . . . . . . . . . . . . . . . 67 10.2 general behavior . . . . . . . . . . . . . . . . . . . . . . 67 10.3 mfrc522 command overview . . . . . . . . . . . . 67 10.3.1 mfrc522 command descrip tions . . . . . . . . . 68 10.3.1.1 idle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 10.3.1.2 mem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 10.3.1.3 generate randomid . . . . . . . . . . . . . . . . . . . 68 10.3.1.4 calccrc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 10.3.1.5 transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 10.3.1.6 nocmdchange . . . . . . . . . . . . . . . . . . . . . . . . 68 10.3.1.7 receive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 10.3.1.8 transceive . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 10.3.1.9 mfauthent . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 10.3.1.10 softreset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 11 limiting values. . . . . . . . . . . . . . . . . . . . . . . . . 71 12 recommended operating conditions. . . . . . . 71 13 thermal characteristics . . . . . . . . . . . . . . . . . 71 14 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 72 14.1 timing characteristics . . . . . . . . . . . . . . . . . . . 75 15 application information. . . . . . . . . . . . . . . . . . 78 16 test information . . . . . . . . . . . . . . . . . . . . . . . . 79 16.1 test signals. . . . . . . . . . . . . . . . . . . . . . . . . . . 79 16.1.1 self test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 16.1.2 test bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 16.1.3 test signals on pins aux1 or aux2 . . . . . . . . 80 16.1.3.1 example: output test signals testdac1 and testdac2 . . . . . . . . . . . . . . . . . . . . . . . . 81 16.1.3.2 example: output test signals corr1 and minlevel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 16.1.3.3 example: output test signals adc channel i and adc channel q . . . . . . . . . . . . . . . . . . . . 82 16.1.3.4 example: output test signals rxactive and txactive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 16.1.3.5 example: output test signal rx data stream . 84 16.1.3.6 prbs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 17 package outline. . . . . . . . . . . . . . . . . . . . . . . . 85 18 handling information . . . . . . . . . . . . . . . . . . . 86 19 packing information . . . . . . . . . . . . . . . . . . . . 86 20 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 87 21 references. . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 22 revision history . . . . . . . . . . . . . . . . . . . . . . . 88 23 legal information . . . . . . . . . . . . . . . . . . . . . . 89 23.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 89 23.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 23.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 89 23.4 licenses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 23.5 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 90 24 contact information . . . . . . . . . . . . . . . . . . . . 90 25 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 26 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 27 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95


▲Up To Search▲   

 
Price & Availability of MFRC52201HN1TRAYB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X